fkeidel / CarND-Term2-ide-profile-VisualStudio

Visual Studio solution/project and install script to download and install uWebSocket on Windows natively, without need to use Ubuntu Bash.
9 stars 6 forks source link

Cannot find or open the CarND-Extended-Kalman-Filter-Project.pdb, but it is right next to .exe #2

Open tchmiel opened 6 years ago

tchmiel commented 6 years ago

I can compile and run fine, but I can’t set a debug breakpoint inside of main.cpp or tools.cpp.

The breakpoint does not get enabled and it gives me the warning: "The breakpoint will not currently be hit. No symbols have been loaded for this document.”

Looking at the output I see that it did not load the symbols for the current .exe. Looking at the build output folder ....\ide_profiles\products\msbuild.windows.x86.v140.Debug

Both the .exe and .pdb exists in this folder (and both will get regenerated if I do a clean/build).

Any thought as to why the .pdb for my .exe is not getting loaded?

I am using the defaults:

set "CarNDEKFProjectPlatform=x86"
set "CarNDEKFProjectToolset=v140"
set "CarNDEKFProjectBuildType=Debug"

and set my project target configuration to Debug, x86.

Only deviation is that I set"VcPkgDir=E:\vcpkg"`` rather than to the"c:\vcpkg"

Here is a portion of my output window. As would be expected, windows dlls could not be loaded as I don't have my symbol server set up for MS dlls. but libuv.dll symbols do load.

'CarND-Extended-Kalman-Filter-Project.exe' (Win32): Loaded 'Z:\SDCar\Term2\CarND-Extended-Kalman-Filter-Project-master\ide_profiles\products\msbuild.windows.x86.v140.Debug\CarND-Extended-Kalman-Filter-Project.exe'. Cannot find or open the PDB file.
'CarND-Extended-Kalman-Filter-Project.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file.
'CarND-Extended-Kalman-Filter-Project.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file.
'CarND-Extended-Kalman-Filter-Project.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\kernel32.dll'
'CarND-Extended-Kalman-Filter-Project.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file.
'CarND-Extended-Kalman-Filter-Project.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Cannot find or open the PDB file.
'CarND-Extended-Kalman-Filter-Project.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ws2_32.dll'. Cannot find or open the PDB file.
'CarND-Extended-Kalman-Filter-Project.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Cannot find or open the PDB file.
'CarND-Extended-Kalman-Filter-Project.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Cannot find or open the PDB file.
'CarND-Extended-Kalman-Filter-Project.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Cannot find or open the PDB file.
'CarND-Extended-Kalman-Filter-Project.exe' (Win32): Loaded 'Z:\SDCar\Term2\CarND-Extended-Kalman-Filter-Project-master\ide_profiles\products\msbuild.windows.x86.v140.Debug\libuv.dll'. Symbols loaded.
ionut-damian commented 5 years ago

Same issue here. When I try to load it manually, it says that it does not match the "image" (I guess it means the exe).

Edit: Actually fixed it by making the Output Dir be the same with the Intermediate Dir. Not sure why this fixes it though ...