Configuring Symbol Server/Path
Configuring symbol server and path
After you connect to HyperDbg, it's highly recommended to configure the symbol server to have a better debugging experience.
For this purpose, first, we have to configure the symbol server address or local symbol path using the '.sympath' command. After that, we can use the '.sym' command to load or download symbols.
Firstly, we need a symbol path. We often set a local symbol path combined with a remote symbol server (e.g., Microsoft Symbol Server). For example, the following path is used:
SRV*c:\symbols*https://msdl.microsoft.com/download/symbols
In the above path, first, it checks if the symbol exists in c:\symbols
. If not, then it checks https://msdl.microsoft.com/download/symbols
.
All the paths strings should be started with SRV*
.
Now, the following command sets the symbol path to SRV*c:\symbols*https://msdl.microsoft.com/download/symbols
.
And the following command shows the current symbol server.
The next step is to update the symbol table.
Use the following command to update the symbol table and all the symbols from the local symbol path (and NOT download them).
If you want to load all the symbols from the local symbol path and, if not available then, download them from the remote symbol server (e.g., Microsoft Symbol Server), use the following command.
After that, each time you load HyperDbg in both local debugging (VMI Mode) and remote serial debugging (Debugger Mode), HyperDbg loads the previously downloaded modules from the path (it won't download symbols from the remote server without your permission, you should use .sym download
to download the symbols from the Internet. However, local symbols are automatically loaded).
When you finish configuring symbols, you can use the function names, variables, and object names in the debugger commands.
Last updated