Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
「int 3」命令をネイティブ プログラムに挿入するのと同様に、C# プログラムからデバッグ ブレークを強制的にトリガーする方法はありますか?
私の使用例: カスタムの「例外」ダイアログで、[デバッグ] ボタンを押すとすぐに Visual Studio ウィンドウに切り替えて、場所とコール スタックを表示できます (手動で切り替えるのではなく、[すべて中断] を使用して GUI を選択します)。スレッド)。すでにプログラムをデバッグしている場合にのみ機能する必要があります。