VisualStudio icon indicating copy to clipboard operation
VisualStudio copied to clipboard

Switch build from Release to Debug when user "Starts Debugging"

Open logan-cy opened this issue 4 years ago • 0 comments

Is your feature request related to a problem? Please describe. I love to use debug/release builds in my process so that I can take advantage of compiler preprocessor directives like #if DEBUG. It's handy to get easy access to debugging logic without changing my code every time I have to test something, but I often forget to switch my build from Release back to debug between deployment and development so what often happens is that I'll make a change to the code, try testing it and the window appears telling me I'm trying to debug a release build. While a minor inconvenience, I then have to stop debugging, change the build type and start debugging again so that the project will build for debug. It can take a lot of time especially on larger projects.

Describe the solution you'd like When I click on Start Debugging or hit F5, I'd prefer if Visual Studio just defaults to a debug build without my intervention or consent. It seems obvious to me that if I tell it to "Start Debugging" that what I want is a debug build regardless of any other assumptions that could be made.

Describe alternatives you've considered Usually I just follow the existing process to stop debugging, change the build type and then start debugging again. I've never really thought about alternatives, but I believe this could be a useful feature.

logan-cy avatar Mar 10 '21 09:03 logan-cy