As a complete WinDbg beginner, I am just wondering, what is exactly going into the source file path? Is it the root folder of your sources? Is it all folders of your sources? (If the sources are in a directory structure)
And also, according to here: In other words, if you use a source file MYCODE.CPP in C:\FOO, what’s embedded in the PDB file is C:\FOO\MYCODE.CPP. But if the path to the source file is an absolute path given in the PDB file, what do I need to set the sources for? Could I leave this blank then?
Thanks
Assuming your symbol path is all set either via _NT_SYMBOL_PATH or through WinDBG Symbol Path Option, you just need to specify the Root Source Path into the source file path.
This makes sense when there are multiple projects and you are debugging either a live process or a Crash Dump.
It is also recommended in these scenarios to maintain a Symbol Store where all the archives and current PDBs (Public or Private) are stored. This is achieved through symstore command. The path to the symstore should actually be appended to the symbol file path.
In case you are just debugging a single project, just pointing to the actual path which contains the source would work for you.