• Register
0 votes
641 views

Problem :

I have recently downloaded VS 2013 Community Edition and I have written the first app. When I try to run it, it usually shows me the below output section:

'ConsoleApplication1.exe' (Win32): Loaded 'D:\Users\Toshiba\Documents\Visual Studio 2019\Projects\ConsoleApplication1\Debug\ConsoleApplication1.exe'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'D:\Windows\System32\ntdll.dll'. Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'D:\Windows\System32\kernel32.dll'. Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'D:\Windows\System32\KernelBase.dll'. Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'D:\Windows\System32\msvcp120d.dll'. Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'D:\Windows\System32\msvcr120d.dll'. Cannot find or open the PDB file.
The program '[11200] ConsoleApplication1.exe' has exited with code 0 (0x0).

Why am I facing the above error? I thoroughly checked my code several times so I know that the problem is not in my code. Have anybody faced the above issue and know the solution on it?

6 5 3
7,540 points

2 Answers

0 votes

Solution :

Following solution worked for me. You need to go to Tools-> Options -> Debugger -> Native and check the Load DLL exports. And your issue will be resolved.

OR

You need to go to Tools->Options->Debugging->Symbols and select checkbox "Microsoft Symbol Servers.Then the Visual Studio will download PDBs automatically.

Please Note : The PDB is the debug information file used by the Visual Studio. These are system DLLs, which you generally don't have the debug symbols for.[...]

9 7 4
38,600 points
0 votes

Solution:

Attempt go to Tools->Options->Debugging->Symbols and choose checkbox "Microsoft Symbol Servers", Visual Studio will download PDBs automatically.

No problem. You're running your code under the debugger, and the debugger is saying you that it doesn't have debugging information for the system libraries.

In case you truly require that (generally for stack traces), you can download it from Microsoft's symbol servers, however for now you don't require to worry.

PDB files are coupled files bearing symbols of modules to be employed at the time of debugging. They are originated for your sources during the debug build process. However there might be no such files for external modules like system DLLs.

The messages you view in the debug output window are only informational and can be ignored.

In case you truly want these symbol files, see "Microsoft public symbol servers" at Specify Symbol (.pdb) and Source Files in the Visual Studio Debugger.

Further, for the Microsoft dlls (like msvcr dlls), you might require to link to the Microsft Symbol server. Read more about it here : Debugging with Symbols (Windows)
and
Employing a Symbol Server - Windows 10 hardware dev

Hence originally the system requires to know a location where it can download the symbols from the MS server as and when nrcessary (like symbol would be downloaded on require basis, not only for all dlls.) and the debugger reqyires to know this location so that while debugging, it can collect the symbols for MS dlls. this is how i remember it used to be . expect its same still )

These are not error messages - they are informational messages from the Visual Studio debugger listing the several executables and Dynamic Link Libraries (DLLs) that have been loaded, and whether or not the PDB (Program DataBase) file bearing debug symbol information was constructed. Usually, the PDB file for your application will be constructed, as it was here, however PDBs for run-time and system DLLs will not. If not you plan to debug the system DLLs you don't require their PDB files and must ignore these messages.

You may further see a message corresponding to:

The program '[11536] Project01.exe' has exited with code 0 (0x0).

This notify that the program ran to completion and exited - here with conquest status of zero. In case you see this message instantly following the "Loaded" messages above, without having the program interrupt into the debugger, you will want to place a breakpoint at the first executable line in the program and then run it again. For C++ applications this is generally not required, however it is necessary for Fortran applications.

10 6 4
31,120 points

Related questions

1 vote
1 answer 17 views
17 views
Problem: I am a new student of C++ programming. I recently started learning it through YouTube and other free resources. I’ve installed the Visual Studio as my IDE and running my program in it. However, I am trying to read a sample text file in Visual Studio and my ... endl; } f.close(); return 0; } Please, figure out the problem for me and help me to run the code successfully. Thanks.
asked Apr 21 Gavin 15.3k points
1 vote
2 answers 242 views
242 views
Problem : I am very new to Ionic, I have recently started working on Ionic but I am facing below error: Runtime Error Uncaught (in promise): Error: Module build failed: Error: ENOENT: no such file or directory, open '/Users/stewart/Development/ionic/theWhoZoo/src/pages ... say they do match. import { MyRatingModel } from '../model/myratingModel'; How can I fix above error need Ionic expert help.
asked Apr 22 stewart 4k points
0 votes
1 answer 169 views
0 votes
1 answer 14 views
0 votes
1 answer 59 views
59 views
I get an error: IntelliSense: no operator "<<" matches these operands operand types are: std::ostream << std::string c:\Users\sasha\Documents\Visual Studio 2013\Projects\summing a list of number\summing a list of number\summing a list of number.cpp 10 Here's the code: ... Why does it say there is an error because of std and ostream when I have already included iostream and std? I am using VS-2013.
asked Nov 8 sasha 2.2k points