diff --git a/macos_development/how_to_debug_in_xcode.md b/macos_development/how_to_debug_in_xcode.md index 182020b..f375fa5 100644 --- a/macos_development/how_to_debug_in_xcode.md +++ b/macos_development/how_to_debug_in_xcode.md @@ -15,6 +15,19 @@ Debugging this way, you can have Xcode run an executable in a .app or just from any directory. There do seem to be differences in the ways some graphics systems are initialized - I get different window scaling in each case. +### Breakpoints +_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** +`b --file --line ` + +**To set at the entry to a particular function** +`b ` +_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** +`breakpoint delete` + ## Graphics ### OpenGL