How to simulate a Delphi breakpoint in code?

前端 未结 2 2085
遥遥无期
遥遥无期 2020-12-13 20:21

I am pretty sure I have seen this before, but I haven\'t found out / remembered how to do it. I want to have a line of code that when executed from the Delphi debugger I wa

相关标签:
2条回答
  • 2020-12-13 20:36

    As Andreas Hausladen stated in comments to that artice, Win32 API DebugBreak() function is less DOS-ish and works equally well.

    0 讨论(0)
  • 2020-12-13 20:47

    To trigger the debugger from code (supposedly, I don't have a copy of delphi handy to try):

    asm int 3 end;
    

    See this page:

    http://17slon.com/blogs/gabr/2008/03/debugging-with-lazy-breakpoints.html

    0 讨论(0)
提交回复
热议问题