I would like to exit out the current method that I\'m stepping through.
-(void)helloWorld {
NSLog(@\"Hello\");
// I would like to return here, so tha
-
Unfortunately in Xcode 4.5.x there is no way to force an early return from a function. In the current lldb sources over at http://lldb.llvm.org/ there is a newly added command, thread return
, which does what you want - it includes the ability to specify the return value of the function. This won't be in Xcode until the next major release, though.
- 热议问题