Xcode: Symbolic breakpoints pausing app during method execution


i trying debug application i'm building. bug appears causing 1 of methods fire prematurely, , i'd know why. so, i'll use breakpoint. want debugger stop @ line method invoked.

suppose, example, have class 3 methods, defined follows:

code:
 -(void)methodthatworks { // productive }  -(void)somemethod { if (x) { [self methodthatworks]; } } -(void)someothermethod { if (y) { [self methodthatworks]; } } 
if somemethod causes methodthatworks invoked, want program stop execution @ [self methodthatworks] line in somemethod. likewise, if someothermethod causes methodthatworks invoked, want program stop execution @ [self methodthatworks] line in someothermethod.

thought setting symbolic breakpoint trick, happens debugger puts breakpoint in method called.

edit: here's screenshot illustrate what's happening. note screenshot not app i'm building - it's project built today:
[​img]
 

put breakpoint in first line of methodthatworks, change context in debugger level in call stack when breakpoint hits.
 


Forums iPhone, iPad, and iPod Touch iOS Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

OS X El Capitan on Unsupported Macs

[SOLVED] SFOTT usb key not bootable Mavericks

Fernando Torres: One of the all-time greats?