Formatting for how_to_debug_in_xcode.md
This commit is contained in:
parent
c76ef1e678
commit
427953c5f8
|
@ -19,13 +19,16 @@ Debugging this way, you can have Xcode run an executable in a .app or just from
|
||||||
_I can't get these to be set via the Xcode Debugger at the moment. I'm not sure why. As an alternative, you can set them via the lldb command line interface in Xcode, and then navigate the stack with the UI just fine._
|
_I can't get these to be set via the Xcode Debugger at the moment. I'm not sure why. As an alternative, you can set them via the lldb command line interface in Xcode, and then navigate the stack with the UI just fine._
|
||||||
|
|
||||||
**To set on a particular file/line**
|
**To set on a particular file/line**
|
||||||
|
|
||||||
`b --file <file_name> --line <line_number>`
|
`b --file <file_name> --line <line_number>`
|
||||||
|
|
||||||
**To set at the entry to a particular function**
|
**To set at the entry to a particular function**
|
||||||
|
|
||||||
`b <function_name>`
|
`b <function_name>`
|
||||||
_Note: this doesn't work if function_name is "main" - it adds a baker's dozen of breakpoints at different places_
|
_Note: this doesn't work if function_name is "main" - it adds a baker's dozen of breakpoints at different places_
|
||||||
|
|
||||||
**To remove all breakpoints**
|
**To remove all breakpoints**
|
||||||
|
|
||||||
`breakpoint delete`
|
`breakpoint delete`
|
||||||
|
|
||||||
## Graphics
|
## Graphics
|
||||||
|
|
Loading…
Reference in New Issue