Binary was not built with debug information

后端 未结 5 998
隐瞒了意图╮
隐瞒了意图╮ 2020-12-15 07:53

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

I am trying to debug a file in my project. I have the project set to debug build in the project properties

相关标签:
5条回答
  • 2020-12-15 08:14

    If you're trying to debug native code (C++) from managed code (C#), make sure that your properties are set to Mixed instead of Native only.

    1. Right-click on your project and click Properties.
    2. Under the Debug tab, go to the Debugger type section and change the Application process to Mixed (Managed and Native).

    (I followed the answer given here by Weston. Thanks Weston!)

    0 讨论(0)
  • 2020-12-15 08:16

    The dll you are trying to debug most probably is not being built in your solution. You need to locate where it is being built and obtain a debug version (or at least a release version with the pdb symbol file).

    0 讨论(0)
  • 2020-12-15 08:31

    For Visual Studio 2017 for Configuration Release or Debug you can create a pdb file for debug information like this:

    • Right click your project in Solution explorer and select "properties"
    • Select "Configuration Properties"
    • Select "Debugging"
    • in "Generate Debug Info" select "Yes (/DEBUG)"
    • in "Generate Program Database File" enter: $(OutDir)$(TargetName).pdb
    0 讨论(0)
  • 2020-12-15 08:32

    If you're having this problem and none of the other answers here worked, check solution -> Properties-> Configuration and make sure that your project is set to debug.

    0 讨论(0)
  • 2020-12-15 08:36

    If your project is already in Debug mode. Please check Advanced Build Settings Dialog Box in Build tab of project.

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

    Stackoverflow

    MSDN

    0 讨论(0)
提交回复
热议问题