1
0
Fork 0

Formatting for how_to_debug_in_xcode.md

This commit is contained in:
Peter Slattery 2024-04-22 15:29:37 -07:00
parent c76ef1e678
commit 427953c5f8
1 changed files with 3 additions and 0 deletions

View File

@ -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