From c76ef1e6784845029dcea538e86dfb0d0c3c9c9c Mon Sep 17 00:00:00 2001 From: Peter Slattery Date: Mon, 22 Apr 2024 15:28:55 -0700 Subject: [PATCH] Adding breakpoint setting instructions for Xcode --- macos_development/how_to_debug_in_xcode.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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