0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

VisualStudio2015でデバッグ実行中にコードを変更する方法

Posted at

概要

VisualStudio2015でデバッグ実行中に、コードを変更しようとすると、
「Changes are not allowed while code is running」
というエラーダイアログが表示されて、コードを変更することができませんでした。
日本語で見つからなかったので、備忘録として残しておきます。

確認環境

Windows10
VisualStudio2015

解決方法

メニューの「Tools」→「Options」→「Debugging」→「General」にある、
「Enable Edit and Continue」のチェックボックスを外すと、デバッグ実行中にもコードを変更できるようになりました。

ちなみに、デバッグ実行中はこの項目のチェックボックスを変更することができないようです。

参考元
https://social.msdn.microsoft.com/Forums/vstudio/en-US/19cc453d-35b5-49d7-9f90-9e0bdec4914a/changes-are-not-allowed-while-code-is-running?forum=visualstudiogeneral

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?