5

I would like add some kind of marker or even force instruments to pause when execution reaches a specific line in the code. Is this possible?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
techsMex
  • 594
  • 4
  • 16
  • 1
    Yes with DTrace, you can set flags with code. See this [SO answer](http://stackoverflow.com/a/20272256/451475). It seems this is broken in iOS7 simulator, possibly fixed in iOS8. I used this on OSX. – zaph Aug 13 '14 at 18:17

1 Answers1

1

You can use sign_posts using Xcode's new kdebug_signpost command. See the SO post at: https://stackoverflow.com/a/39416673/1179897

Shaheen Ghiassy
  • 7,397
  • 3
  • 40
  • 40