[DUG] Find the currently executing source line
Steve Peacocke
steve.peacocke at gmail.com
Fri Jul 13 16:32:30 NZST 2007
OK, there are two Stack windows.
1. The CPU Stack contains a list of two columns of 4 hex numbers, and
a column of for characters. Not a lot to make sense in there.
2. The Call stack shows a DLL and the kernal32.dll. Steping though
those, it changes. For example, I now have two QUARTZ.dll files and
the kernal32.dll
Anyone make sense of that?
Steve
On 13/07/07, Conor Boyd <Conor.Boyd at trimble.co.nz> wrote:
> 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?
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject: unsubscribe
>
--
Steve Peacocke
http://stevepeacocke.blogspot.com/
More information about the Delphi
mailing list