Discussion:
Preserve Breakpoints when Restarting Debug (Ctrl-Alt-F5)
(too old to reply)
c***@my-deja.com
2007-01-05 13:20:48 UTC
Permalink
Every time I restart a debug session, I lost all the breakpoints. Is
there a way to make it presist?

TIA
Pavel Lebedinsky [MSFT]
2007-01-08 06:32:59 UTC
Permalink
Post by c***@my-deja.com
Every time I restart a debug session, I lost all the breakpoints. Is
there a way to make it presist?
I'm not sure about breakpoints set using GUI, but 'bu' breakpoints
are saved in windbg workspace.

I mostly use kd/cdb which don't have workspaces. If I need to
preserve breakpoints across sessions, I use the .bpcmds
command to list all breakpoint commands and then paste
the output into the new session. As of now .bpcmds seems
undocumented, so the usual disclaimers apply - use at your
own risk, no promise it will be supported in the future, etc.
--
This posting is provided "AS IS" with no warranties, and confers no
rights.
Skywing [MVP]
2007-01-08 16:05:51 UTC
Permalink
I just write down all of my breakpoint commands and paste them into a
notepad window as I enter them into the debugger; no undocumentedness
required for that.
--
Ken Johnson (Skywing)
Windows SDK MVP
http://www.nynaeve.net
Post by Pavel Lebedinsky [MSFT]
Post by c***@my-deja.com
Every time I restart a debug session, I lost all the breakpoints. Is
there a way to make it presist?
I'm not sure about breakpoints set using GUI, but 'bu' breakpoints
are saved in windbg workspace.
I mostly use kd/cdb which don't have workspaces. If I need to
preserve breakpoints across sessions, I use the .bpcmds
command to list all breakpoint commands and then paste
the output into the new session. As of now .bpcmds seems
undocumented, so the usual disclaimers apply - use at your
own risk, no promise it will be supported in the future, etc.
--
This posting is provided "AS IS" with no warranties, and confers no
rights.
Loading...