Visual Studio locking files while debugging

前端 未结 3 1002
慢半拍i
慢半拍i 2021-01-11 15:44

I have a VS solution containing several projects. While debugging a particular project all the source files are locked by VS. I would like to unlock sources that the debugee

3条回答
  •  醉酒成梦
    2021-01-11 16:23

    The Edit and Continue feature is preventing you from editing files if the debugger hasn't stopped the program. The simple workaround is Debug + Break All, you should then be able to edit the files, your changes will be immediately effective provided your changes do not violate the restrictions imposed by E+C. This is the most efficient work flow.

    The heavy-handed approach is to disable Edit and Continue. Tools + Options, Debugger, Edit and Continue, uncheck the Enable check box.

提交回复
热议问题