Reputation: 1256
I have a solution which contains multiple projects. The thing is, there is 1 web app project which does not have debug option. So every time I run it, the breakpoint won't be hit.
I am using VS 2019 with IISExpress.
Here are the screen shot of my issue.
This is from the project properties
This is from the solution properties. Note that all other projects selected 'Debug' but the option is not available for this 1 app.
From web.config
The below ss is from my other application within the same solution. Note that the 'Debug' option is there.
So my question is how can I enable the debug option for this project?
Upvotes: 0
Views: 2741
Reputation: 6640
There's nothing special about the "Debug" build configuration that makes debugging possible - the actual setting is "Optimize code". You could choose to disable this option (and thus enable debugging) for your current configuration, but if you want to first edit your project to be in line with the rest of the other projects (i.e., to have a separate "Debug" configuration):
Upvotes: 2