We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Is there a way to set a temporary breakpoint using a debug command, similar to the "Go To Line" right-click menu option? I'd like to set breakpoints via the BreakSet debug command that only break program execution once. I'm trying to get the breakpoint to delete itself; I can execute the BreakDelete function as part of the breakpoint command but the command doesn't know the current breakpoint number. Any other method to do this?
Thanks, Robert
if (!flag) nop flag = 1
and breakpoint on the nop
Robert; You can write a simple script in the debugger either to clear, disable or set a breakpoint. Then in your target code, you set your breakpoint to execute the script. If you hit the breakpoint, the script will execute but the target breakpoint will NOT stop code execution. Also, while you are in the script, you can do a debugger "printf" to write a message to the command screen just for that warm fuzzy feeling that it works. Remember, the printf in the debugger script just writes to the command screen. This is not the same printf that writes to a comm port from your target code. Bradford