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:
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
Post a Comment