Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get windbg to save my session state?

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?

like image 602
user200814 Avatar asked Dec 20 '12 21:12

user200814


People also ask

How do I save my WinDbg log?

Choose Open/Close Log file from the Edit menu. When you start WinDbg in a Command Prompt window, use the -loga command-line option. Enter the . logappend (Append Log File) command.

How do I enable WinDbg in Windows 10?

On the host computer, open WinDbg and establish a kernel-mode debugging session with the target computer. In WinDbg, choose Contents from the Help menu. This opens the debugger documentation CHM file. The debugger documentation is also available on line in Debugging Tools for Windows.

How do I update WinDbg preview?

Checking for updatesOpen the Store app and select your account picture next to the search box. Select Downloads and Updates to check for updates. On the downloads and updates page, select Get updates.


2 Answers

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

like image 130
EdChum Avatar answered Oct 11 '22 09:10

EdChum


Microsoft NTDebugging Blog. Uncovering How Workspaces Work in WinDbg.

like image 27
sergmat Avatar answered Oct 11 '22 11:10

sergmat