0

I'm running into an odd problem with Visual Studio 2005: I have a data breakpoint that's set to run a macro and continue (that is, I select a macro and check Continue Execution.)

Now, instead of silently running the macro when the value in the data breakpoint (tracepoint, really) changes, I first get a message box informing me that the breakpoint was hit, and the macro runs only after I hit OK.

The code I'm debugging is timing sensitive, so this makes it impossible to debug. Is there a way to disable the message box that pops up?

In response to comments: The macro itself can be empty, or it can be any of the Microsoft provided sample macros - it doesn't make a difference.

4

2 に答える 2

1

それは私のためにもこれを行います。「Continue execution」オプションの設定方法に基づいて動作が多少異なるように見えるため、この動作 (そのままでは痛い) は設計によるものではないかと思います。またはバグかもしれませんが、どちらの場合でも行き詰まる可能性があります。

別の方法として、windbg またはデータ ブレークポイントもサポートするその他のWindows デバッグ ツールのいずれかを使用することもできます。慣れるまでに少し時間がかかり、Visual Studio デバッガーほどユーザー フレンドリーではありませんが、非常に強力です。「ba」コマンドはデータ ブレークポイントを作成し、ブレークポイントに到達したときに特定のコマンドを実行するようにデバッガをプログラムできます。 この記事には、これらのデバッガーに関する優れた入門情報が含まれており、最後の Q & A セクションには、ブレッドポイントに到達したときにアクションを実行する方法の例があります。

于 2008-10-16T04:18:34.997 に答える
0

私のマシンには vs.net 2005 がありません。
だから、私はここで推測しています。

実行ラインは何ですか?

プロパティを評価しようとしていますか?
プロパティの読み取り時に条件付きブレークポイントが設定されていますか? (つまり、プロパティが読み取られたときにブレークしますか?)

現在の実行行に関連する他のブレークポイントを削除して、トレースポイントを再度追加してみてください。

于 2008-10-16T03:52:21.757 に答える