0

「プロセスにアタッチ」機能を使用する場合、Visual Studio はどの .PDB ファイルを使用しますか? 私は次の手順に従いました:

  1. 簡単な VB.NET プロジェクトを作成しました
  2. Visual Studio でソース コードを開き、[ビルド] をクリックします。
  3. 「Debug」フォルダの.EXEをダブルクリック
  4. 実行中のプロセスに Visual Studio をアタッチ
  5. その後、ブレークポイントを追加して、期待どおりにコードをステップスルーすることができました

次に、DEBUG、RELEASE、および OBJ で見つかったすべての .PDB ファイルを削除しましたが、それでもデバッグできました。Visual Studio はどこで .PDB ファイルを検索しますか?

4

1 に答える 1

1

When you view the Modules window during Debugging - in c# keyboard layout the command is:

Ctrl + D , M

I created a simple WinForm app, compiled, then I ran the exe in the debug bin and attached a debugger to it and clicked a button to halt the code control on a breakpoint, as shown below.

Then in Visual Studio I pressed the Module window shortcut keys and it tells me where the PDB files have been loaded form:

enter image description here

于 2012-06-24T09:18:28.743 に答える