Failed to debug 64-bit application in release config with debug info enabled

I am trying to debug an application that is in Release Configuration - a 64-bit Windows platform , but the breakpoints are not affected.

I have included the Debug compiler option :

enter image description here

I can debug the application when it is in 32-bit configuration ; breakpoints work fine.

| Configuration | 32-bit     | 64-bit     |
|---------------|------------|------------|
| Debug         | Debuggable | Debuggable |
| Release       | Debuggable | Fails      |

All with "Debug information" set to "Debug information", 
and full build (Shift+F9) before running.

      

So three questions:

  • why does the Debug information setting work for 32-bit debugger but not 64-bit dubugger?
  • Why is a 64-bit debugger able to debug an application in the Debug configuration but not in the Release configuration ?
  • which option can I change to allow me to debug 64-bit applications in the Release configuration ?

Bonus screenshots

32-bit versions of the linker:

enter image description here

64-bit linker options:

enter image description here

+3


source to share


1 answer


I think you need to enable debug information in the linker options. At least when I disable this the breakpoints are not hit, and when I enable this the breakpoints are removed.

All in all, from what I can tell using a solid trial and error technique, enabling debugging requires the following:



  • 32 bit: Compiler debug information is included.
  • 64 bit: Debug compiler and linker feature enabled.
+8


source







All Articles