Enable and disable “Step into” debugging on certain project in a Visual Studio solution

前端 未结 7 1474
忘了有多久
忘了有多久 2021-01-01 13:13

I have a Visual Studio solution with four C# projects in it. I want to step into the code of a supporting project in the solution from my main project, but when I use the \"

7条回答
  •  渐次进展
    2021-01-01 13:42

    It turns out that the assembly needed to be copied into the GAC before it could be debugged. Under the debugging option "Just my code", there's an option to suppress an error if you don't have any user code, and it was suppressing the following error:

    The Following mobile was built either with optimizations enabled or without debug information. (Module name and path) To debug this module, change its build configuration to Debug mode.

    Since I was building it in Debug configuration, I searched on that error message and got this:

    http://claytonj.wordpress.com/2008/01/04/the-following-module-was-built-either-with-optimizations-enabled-or-without-debug-information/

    Problem solved. I don't know why it needs to be in the GAC in order for me to step into the project, but it does. I don't ask why, I just ask how, and then I do it...

提交回复
热议问题