Binary was not built with debug information

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


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

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!)


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.