开发者

What is a single step exception?

开发者 https://www.devze.com 2023-02-01 13:56 出处:网络
What is a single step exception? In 开发者_如何学Cthe context of a stack trace and a break point?

What is a single step exception? In 开发者_如何学Cthe context of a stack trace and a break point?

Cheers, J


This exception usually is a trap (a kind of exception, which itself is a kind of interrupt) that is raised by the CPU.

A common debugging scenario is:

  1. Breakpoint is hit
  2. User asks the debugger to "single step" exactly one line of code
  3. line of code is executed
  4. CPU raises single step execution (exception code 1)
  5. Debugger catches single step exception (and usually nicely handles this by highlighting the next line and updating variable watches)

However, this exception can also be raised in other cases. You can refer to http://support.microsoft.com/kb/117389 as a starting point.

0

精彩评论

暂无评论...
验证码 换一张
取 消