0

I'm just starting out and my first time trying to run "hello world" gave me this.

'Project2.exe' (Win32): Loaded 'C:\Users\Dustin\Documents\Visual Studio 2013\Projects\Project2\Debug\Project2.exe'. Symbols loaded.

'Project2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file.

'Project2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file.

'Project2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Cannot find or open the PDB file.

'Project2.exe' (Win32): Loaded 'C:\Program Files\Bitdefender\Bitdefender\active virus control\Avc3_00261_012\avcuf32.dll'. Cannot find or open the PDB file.

'Project2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr120d.dll'. Cannot find or open the PDB file.

The program '[3140] Project2.exe' has exited with code 0 (0x0).

Can anyone help me figure our where these pdb files are and how to fix this?

Thank you.

4
  • When you have Debug build, pdb files should be automatically generated to Debug binary directory. Did you change anything regarding the build?
    – Halil
    Nov 28, 2014 at 16:31
  • 1
    Focus on debugging your own code, you don't want to debug your virus checker. For tough debugging jobs, like a crash inside one of the operating system DLLs, you can obtain PDBs from a Microsoft server. Tools + Options, Debugging, Symbols. Nov 28, 2014 at 16:42
  • given the 'I'm just starting out' I doubt this is a 'tough debugging job'.
    – Sam Holder
    Nov 28, 2014 at 16:45
  • I cleared the symbol cache and reloaded everything from the MS server, which worked, but I still can't figure our why or what it's trying to do with bitdefender or how to stop it. Any suggestions? Nov 28, 2014 at 17:01

4 Answers 4

2

*.pdb files are generated for debugging purposes when a DLL library module is built. They contain the symbols and offsets for the various binary elements within the DLL.

When you start a debugging session, the IDE will attempt to find the *.pdb file that is associated with every DLL that is loaded at runtime. If it cannot find the associated *.pdb file (with the same name. ex. kernel.dll & kernel.pdb) it will render the message above: "Cannot find or open the PDB file."

What this message implies is that you will not have any symbolic debugging ability for anything going on within that DLL. The DLL that is loaded will function normally and is not affected.

The pdb files for system libraries should be installed on your system or can be obtained from Microsoft. Other vendor's dll that are loaded for whatever reason most likely will not come with the pdb files so you must simply ignore the warning.

The pdb file for something you are working on will be automatically generated by default.

If you go to the VisualStudio menu TOOLS:Debugging:Symbols there is a dialogue box for managing the PDB file locations and such.

1

Can you check if generating debug information is in place? Go to Project properties (right click then properties) > Configuration Properties > Linker > Debugging. Generate Debug Info should be YES and File should be $(OutDir)$(TargetName).pdb.

enter image description here

0

Looking at the results, the pdbs that are not loaded are systems dlls, which you don't really need to debug through I don't think. Your programs pdb got loaded fine:

'Project2.exe' (Win32): Loaded 'C:\Users\Dustin\Documents\Visual Studio 2013\Projects\Project2\Debug\Project2.exe'. Symbols loaded.

There is nothing wrong with the other files not having pdbs loaded I don't think. It is normal to not have symbols loaded for system files

If you think this is not the case then perhaps you can indicate which files in the list above you expect to be able to load the pdbs for? And also what the issue that their not being loaded is causing.

5
  • thanks for responding. I cleared the symbol cache and reloaded the symbols from the MS server, now I only have the problem where VS is trying to do somethig with bitdefender Nov 28, 2014 at 17:02
  • Can you explain why you want to load the symbols for this file? This is some antivirus file, it probably shouldn't be loaded in the VS process and you are almost certainly not going to be able to get hold of the debug files for it. I would either configure bitdefender to not run on the files in your project directory, or simpler, just forget about it, its probably not important
    – Sam Holder
    Nov 28, 2014 at 17:19
  • this post might help if you can translate it: forum.bitdefender.com/index.php?showtopic=44389
    – Sam Holder
    Nov 28, 2014 at 17:21
  • I'm not trying to run it at all. This is my first time writing a program and it keeps showing up Nov 28, 2014 at 17:31
  • is this stopping your program from runnning? if not then I'd just ignore it. If so then I'd disable bitdefender and take it up with their support.
    – Sam Holder
    Dec 1, 2014 at 8:36
0

Do the following:

go to debug -> options -> symbols -> set microsoft symbol server on

That should work finely for you..

Feel free to ask me if you still have a questions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.