Freigeben über


Managing source windows in WinDBG

If you make use of the source code debugging features WinDBG you may find it quite annoying the way that each time you hit a point in the debug that relates to source in a file you do not already have open WinDBG opens yet another source window. This results in lots of open source windows and a constantly rearranged set of windows.

I found today that if you go into Tools->Options and set the “Reuse after opening this many” option to 1 instead of the default (0):

clip_image002

then what you find is that it will always reuse the same source window to display the currently relevant source.

This mean you can drag the source window outside of the main WinDBG window to a location of your choice (e.g. onto another monitor) and each time a new source file is opened it will open there and not mess up the arrangement of windows in your main WinDBG area.

HTH

Doug

Comments

  • Anonymous
    February 06, 2012
    Another way of solving this annoyance is to right-click the source window title bar and click "Move to new dock." This creates a new dock window you can stick on another monitor with the source file pane as the single, maximised window inside it.  Now you can right-click the source frame's title bar again and check "Select as tab target for window type".  Now all source files open into this new window and are tabbed along the bottom so you can easily switch between them.

  • Anonymous
    February 06, 2012
    Thanks Simon, good tip!