How do I get windbg to save session state?

I just started a new task at the "lower level" in the platform stack, and I'm starting with windbg. I am still quite happy with the pure power of the debugger. However, I would like it to just keep my default session, as the VS debugger does. I want that whenever I ".restart" or open windbg again, it works the same as I left it: the same bp, the same sxe state, the same files open in the same places etc.

I know about the "save workspace" that seems to do what I want, but this is a guide, and I have to do it every time I make changes to the state of the workspace.

Is there a way to just do windbg automatically?

+6
source share
2 answers

The first time you close a session and ask if you want to save your workspace, there is a flag, for example, an image.

enter image description here

If you click yes this time, and in the "Do not ask again in this WinDbg session" field, it will automatically save your workspace, in the same way you can also clear workspaces if it mistakenly saved some breakpoints or paths, are more interested .

You can also set this in the following options:

enter image description here

+8
source

Microsoft NTDebugging Blog. Detecting how workspaces work in WinDbg.

+1
source

All Articles