Cary
Cary

Reputation: 404

Failed to Set Breakpoint in WinDbg

My workflow follows.

  1. Configure the symbol file path and source code file path for WinDbg.
  2. Open one source code file to be debugged later.
  3. Press F9 and try to set breakpoint in the source code.
  4. WinDbg pops up an error dialog, saying 'Debuggee must be stopped before breakpoints can be modified.'

Who can tell me why? My WinDbg version is 6.11.0001.404 (X86), Windows XP 64-bit. I am debugging a dll from within very complicated runtime system.

I wrote a simple exe and click to open it. Immediately after opening it, I open the source code file and set one breakpoint. It works in this case!

Upvotes: 1

Views: 3413

Answers (1)

snoone
snoone

Reputation: 5489

The hint is in the error, "Debuggee must be stopped before breakpoints can be modified". You have to break into the target process with Debug->Break before WinDBG will let you set a breakpoint. When you launch an EXE under WinDBG is starts off broken in, so you can set the breakpoint.

-scott

Upvotes: 5

Related Questions