Re: Debug API single-step mode on multi-thread

Tech-Archive recommends: Fix windows errors by optimizing your registry



In addition to what Tim has already said...

How can I really make a single-step mode:

* step for each thread <----------------------+
|

It is not possible at all to single-step each thread in the process,
because some threads might not be able to execute at all
(e.g. they can be waiting for an unavailable synchronization object,
sleeping, waiting for I/O, suspended from another process,
and so on).

The closest thing you can get is to single-step one thread at a time
(e.g. let the user decide which one) or expect "Step" command
to single-step only those threads that can run (e.g. wait for a predefined
timeout after "Step" command has been issued) and break into
your debugger after that.

Oleg






.



Relevant Pages

  • Re: one-step build for hello.c
    ... with the code ready to edit and single-step in the ... debugger. ... > use command line to build a single file, the following is a sample command. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Debug API single-step mode on multi-thread
    ... It is not possible at all to single-step each thread in the process, ... because some threads might not be able to execute at all ... (e.g. they can be waiting for an unavailable synchronization object, ... timeout after "Step" command has been issued) and break into ...
    (microsoft.public.win32.programmer.kernel)