Debugging a Class Library

2019-06-04 01:27发布

问题:

I have a few class libraries in my ASP.net Web Application. I have been debugging them with no problems then suddenly, BAM! Monday morning I get this error and I can hit any break points:

The following module was built wither with optimizations enabled or without debug information:

To debug this module, change its project build configuration to Debug mode. To supress this message, disable "warn if no user code on launch" debugger option.

Does anyone have any ideas as to what is causing this?

thanks!

回答1:

In the toolbars at the top of Visual Studio, theres a drop-down indicating whether to build the current solution with debug- or release-configuration. This drop-down menu usually resides next to the "play"-button you'd press to Start debugging.

http://msdn.microsoft.com/en-us/library/wx0123s5.aspx