The binary was not created with debug information

I am using Visual Studio 2013, .NET Framework 4.0 and C #.

I am trying to debug a file in my project. I have a project for debugging the assembly in the project properties, while not optimizing the "optimize". And yet, whenever I try to debug this project, it cannot load characters. Therefore, I go to the modules window for loading symbols, and in the dll the column "Optimized" is set to "Yes", the column "User code" is set to "No", and the message "Binary file was not created with debugging information" in the column The state of the character.

I cleaned and rebuilt, reset iis, and manually cleared the temporary asp.net files many times, to no avail.

Does anyone know how to solve this?

+10
source share
5 answers

The DLL you are trying to debug is most likely not built in your solution. You need to find where it is being built and get the debug version (or at least the release version with the pdb symbol file).

+1
source

If your project is already in debug mode . Check the Advanced Build Options Dialog Box on the Create Project tab.

Make sure Debug information is not set to none enter image description here Reference:

fooobar.com/questions/247839 / ...

MSDN

+29
source

If you have this problem and none of the other answers worked here, check the solution -> Properties-> Configuration and make sure your project is set up for debugging.

+1
source

If you are trying to debug your own code (C ++) from managed code (C #), make sure that your properties are set to Mixed , not just your native one.

  • Right-click your project and click Properties .
  • On the Debug tab, go to the Debug type section and change the Application Process to Mixed (managed and main) .

(I followed the answer here from Weston. Thanks, Weston!)

0
source

For Visual Studio 2017 to release configuration or debugging, you can create a pdb file for debugging information, for example:

  • Right-click your project in Solution Explorer and select Properties
  • Select "Configuration Properties"
  • Select "Debug"
  • in "Create Debug Information" select "Yes (/ DEBUG)"
  • in the "Create program database file" enter: $ (OutDir) $ (TargetName) .pdb
0
source

All Articles