WinDbg Debugging Tips

This topic provides answers and workarounds for common WinDbg debugging questions and problems.

Windows Symbols

You may want to use the Microsoft Symbol Server to obtain debug symbol files. For more information, see https://learn.microsoft.com/en-us/windows/win32/dxtecharts/debugging-with-symbols?redirectedfrom=MSDN.

WinDbg Workspace Configuration

When you first start WinDbg, it uses the default workspace. A workspace includes search paths and stores user-loaded extensions, like the wRTOS WinDbg Extension. It's a good idea to save the base workspace information in WinDbg once you have loaded symbols and extensions.

WinDbg loads a new workspace when you do something new, such as loading a new postmortem dump, attach to a new live system.

Using Verbose Mode

Before setting Symbols in WinDbg, it's a good idea to turn on the verbose setting so that you can confirm settings:

Forcing Changes to Settings

You can force WinDbg to accept a setting with:

Kd>.reload /f wrtos_rtss.sys

or:

Kd>.reload /f wrtos_halext.sys

“No Export !rtprocess found” when using !rtprocess

Make sure you set up the wRTOS extensions as described in the previous section. If WinDbg still returns any error like “No export [extension] found,” you might want to execute a .chain command, which lists all loaded extensions.  

Related topics: