Click here to Skip to main content
15,884,537 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi, I'm Pramana

I'm using Visual Studio 2013. My problem is every time when i want to run my C/C++ codes using local windows debugger error will occurred.

Cannot find or open the pdb file. I have checklist the Microsoft Symbol Server, or download the PDB file ( 600mb size ) and install it on my local hardrive. And i did add the path to my PDB file on my local hardrive.

Yet still error.

here the list of error.

'STACK-StrukturData.exe' (Win32): Loaded 'C:\Users\Cr7Pramana\Desktop\VStudio\STACK-StrukturData\Debug\STACK-StrukturData.exe'. Symbols loaded.
'STACK-StrukturData.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file.
'STACK-StrukturData.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file.
'STACK-StrukturData.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Cannot find or open the PDB file.
'STACK-StrukturData.exe' (Win32): Loaded 'C:\Windows\SysWOW64\mfc120ud.dll'. Cannot find or open the PDB file.
'STACK-StrukturData.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr120d.dll'. Cannot find or open the PDB file.
'STACK-StrukturData.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Cannot find or open the PDB file.
'STACK-StrukturData.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'. Cannot find or open the PDB file.
'STACK-StrukturData.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp120d.dll'. Cannot find or open the PDB file.
'STACK-StrukturData.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Cannot find or open the PDB file.
'STACK-StrukturData.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Cannot find or open the PDB file.
'STACK-StrukturData.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Cannot find or open the PDB file.
'STACK-StrukturData.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shlwapi.dll'. Cannot find or open the PDB file.
'STACK-StrukturData.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imm32.dll'. Cannot find or open the PDB file.
'STACK-StrukturData.exe' (Win32): Loaded 'C:\Windows\SysWOW64\uxtheme.dll'. Cannot find or open the PDB file.
'STACK-StrukturData.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Cannot find or open the PDB file.
'STACK-StrukturData.exe' (Win32): Loaded 'C:\Windows\SysWOW64\combase.dll'. Cannot find or open the PDB file.
'STACK-StrukturData.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Cannot find or open the PDB file.
'STACK-StrukturData.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Cannot find or open the PDB file.
'STACK-StrukturData.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Cannot find or open the PDB file.
'STACK-StrukturData.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Cannot find or open the PDB file.
'STACK-StrukturData.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Cannot find or open the PDB file.
'STACK-StrukturData.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'. Cannot find or open the PDB file.
The program '[6332] STACK-StrukturData.exe' has exited with code 0 (0x0).

Seems my Visual Studio still load the PDB file from Windows\SysWOW64. Then how do i change the load address ?

Thank You
Posted
Updated 16-Dec-20 14:19pm
Comments
Mehdi Gholam 8-May-15 8:30am    
Try running VS as an administrator with "run as administrator".
Pramana A. Putra 9-May-15 2:05am    
still doesn't work

1 solution

These are not errors but informational messages. They tell you that there are no symbol (.pdb) files for the DLL's loaded by your app. But the symbols for your app has been loaded (see the first message).

Such PDB files are created when building your app. Because the system DLL's are not build by you, you did not get the corresponding PDB files. You don't need them because you usually want to debug your code and not the code of system DLLs.
 
Share this answer
 
Comments
Sascha Lefèvre 8-May-15 17:26pm    
+5
Pramana A. Putra 9-May-15 2:07am    
@Jochen Arndt, yes, because this code is just a console application i don't need them, but then how to debug my code if those information messages shows up ?

Thank You
Jochen Arndt 9-May-15 4:49am    
You are already debugging our code. The messages are shown in the debug output window telling you what has happened:

'Your.exe: Loaded some.dll'
This tells you that the main app or or a dependant module has been successfully loaded.

For your app this is followed by 'Symbols loaded'. This means that the debugger can show the source code and variable contents when execution is stopped (e.g. at a break point).

Because the symbols for the DLLs are not loaded, the debugger can only show assembly code when stepping into the code of those DLLs.

To debug your code, set a break point on some source line (right click - Breakpoint - Insert) and start debugging (F5). Then use Step Over (F10) and Step Into (F11).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900