0

Building in Debug gives me a Release build; I can't get back to Debug. Consequently I had this problem which I solved by unclicking "Optimize code" in project properties: Breakpoint Failed to Bind - Visual Studio 2015

But the root cause seems to be that I'm stuck in Release. I confirmed it with this:

#if DEBUG
    stuff
#else
    other stuff
#endif

And also in Project Properties in the Build tab it always says Active (Release). How do I fix this?

Community
  • 1
  • 1
nmit026
  • 3,024
  • 2
  • 27
  • 53

1 Answers1

0

As @dxiv said, you can change to Active configuration under Build, Config Manager, but in my case even though Debug was selected, Visual Studio had glitched somewhere and the configuration for each individual project was set to Release. Weird. I changed them back to Debug. Problem solved.

nmit026
  • 3,024
  • 2
  • 27
  • 53