[DUG] Find the currently executing source line
Conor Boyd
Conor.Boyd at trimble.co.nz
Fri Jul 13 16:20:17 NZST 2007
At the very least, you should be able to look at the Stack Trace window,
and look down the stack until you find some of your own code.
Once you find the "top" of your own code, then you should be able to
work out where you want to put your breakpoint.
HTH,
Conor
-----Original Message-----
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz]
On Behalf Of Steve Peacocke
Good afternoon All,
I'm trying to do something rather unusual here with Delphi. Instead of
tracing code one step at a time, I want to pause the code when I see
that a certain error has occurred and ask delphi to show me the source
line that its currently executing. The program is still running in the
background, so I press pause. It then always loads the CPU window
(meaning absolutely nothing to me) and when i try to "trace until the
next source line", it comes up with the following error...
---------------------------
Debugger Exception Notification
---------------------------
Project <myname>.exe raised exception class EPrivilege with message
'Privileged instruction'.
---------------------------
Break Continue Help
---------------------------
Break stops at that same line in the CPU window, Continue shows the
error in a message box; and help, well I haven't tried that but my guess
is that it doesn't, help that is.
Can anyone help with how I can see what actual source code line the
application is processing?
More information about the Delphi
mailing list