Thanks
In the IDE use "Call Stack" contrl-L (Debug Menu)
If in a compiled executable use DebugBreak() and the VC++ debugger
(CodeView) or WinDbg. (or also Dr. Watson or other just-in-time debugger)
http:
I'm curious how you got yourself in a situation, with ClassicVB, where this desire
came to be? I've been using it since the get-go, and I've never once thought that'd
help me understand my own code.
--
.NET: It's About Trust!
http://vfred.mvps.org
Private Declare Sub DebugBreak Lib "kernel32" Alias "DebugBreak" ()
-ralph
lol
This post also struck me as odd, especially since the Call Stack View is a
simple menu click. I suspect the OP is really looking for some kind of
static "call trace".
-ralph
I was thinking more in terms of him wanting to look at pushed parameters, and such,
in addition to return addresses. Just seemed so incredibly retro, y'know?
"Programmer666" <progra...@nowhere.com> wrote in message
news:go3ko2$ev2$1...@news.motzarella.org...
> If you have a problem /bug and you want to check the stack how to do that
> in VB6? Can it be done without writing code?
>
Not from inside VB6 code as such. You have to attach an external debugger or
use the IDE.
I use a combination of the free add-ins HuntERR (no longer readily
available) and MZ-Tools to insert my error handlers and add line numbers.
If, or when, an error occurs I get a stack trace with line numbers - which
then gets emailed to me (if I'm not using the IDE).
So, theoretically, I don't actually write the code - just click a button to
insert a handler (of a few lines) into each sub/function.