Using Workspaces

With workspaces, you can save and restore the state of WinDbg between debugging sessions and customize WinDbg for different debugging situations. Workspaces are saved in the registry for each user.

When you debug a program for the first time or start WinDbg without loading a debuggee, you start with the Common Workspace. The Common Workspace is different from other workspaces because it is not associated with a particular program, but is available at all times. You can use the Common Workspace as a starting point for custom workspaces that are saved with each program.

You can change the Common Workspace to reflect your preferences for WinDbg.

{bmc bm4.MRB}        To change the Common Workspace

  1.  Configure WinDbg windows and options.

  2.  Choose Save Common from the Program menu.

 

 

Note  Since the Common Workspace does not correspond to a specific program, breakpoints, watch expressions, and other program-specific information are not saved.

 

{bmc bm4.MRB}        To create a new workspace

  1.  Load a debuggee using Open from the Program menu.

  2.  Configure WinDbg windows, breakpoints, and options.

  3.  Choose Save As from the Program menu.

  4.  Enter a name for the workspace.

If you check the Make Default box, the workspace will be saved with the given name, and it will be made the default workspace for the program when the Program Open Dialog box is next used.

  5.  Choose OK.

 

{bmc bm4.MRB}        To delete a workspace

  1.  Choose Delete from the Program menu.

  2.  In the Program box, select the program that has the workspace that you want to delete.

  3.  In the Workspace box, select the workspaces that you want to delete.

  4.  Choose Delete. The selected workspaces will disappear.

  5.  Choose OK.