How do I get windbg to save my session state?
Asked Answered
P

2

7

I just started a new task at a "lower level" in the platform stack, and I'm getting started with windbg. I'm so far quite happy with the pure power of the debugger. However, I wish it would just save my session default, like the VS debugger does. What I want is that whenever I ".restart", or re-open windbg, it works just like I left it: same bp's, same sxe state, same files open in the same places, etc.

I know about "save workspace" which seems to do what I want, but it's manual, and I have to do it every time I make a change to the workspace state.

Is there a way to just have windbg do this automatically?

Plumose answered 20/12, 2012 at 21:9 Comment(0)
F
8

It should prompt the first time you close the session and ask you if you want to save your workspace, there is a checkbox like the image here.

enter image description here

If you click yes this time and the box 'Don't ask again in this WinDbg session' then it will automatically save your workspace, similarly you can also clear the workspaces if it's erroneously saved some breakpoints or paths that you are no longer interested.

Also you can set this in the options like so:

enter image description here

Frey answered 20/12, 2012 at 21:14 Comment(0)
C
1

Microsoft NTDebugging Blog. Uncovering How Workspaces Work in WinDbg.

Cachet answered 21/12, 2012 at 5:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.