Is there a way to *completely* disable Edit and Continue?

前端 未结 3 2139
无人及你
无人及你 2021-02-20 18:25

I was wondering if there was a way to completely lock my code while debugging it within Visual Studio 2008. The code documents lock automatically when running as 64 bit applicat

3条回答
  •  醉话见心
    2021-02-20 19:06

    Here is a trick I use under Visual Studio 2005 (don't have a chance to test under Visual Studio 2008, but it should work):

    • Open the executable assembly's properties
    • Go to the Debug tab
    • Check the Enable unmanaged code debugging checkbox

    The code documents should stay locked, even when a breakpoint is hit, and any attempt to change it should trigger a popup saying "Changes are not allowed when unmanaged debugging is enabled".

提交回复
热议问题