|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Reading Stack from VB6If 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? Thanks "Programmer666" <programmer***@nowhere.com> wrote in message In the IDE use "Call Stack" contrl-L (Debug Menu)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? > > Thanks > 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: To clarify, "DebugBreak" is not an internal VB function, you have to declare
a WinAPI call: Private Declare Sub DebugBreak Lib "kernel32" Alias "DebugBreak" () -ralph Programmer666 wrote:
> If you have a problem /bug and you want to check the stack how to do that in I'm curious how you got yourself in a situation, with ClassicVB, where this desire > VB6? Can it be done without writing code? 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. "Karl E. Peterson" <k***@mvps.org> wrote in message thought that'dnews:uo7vMy2lJHA.3760@TK2MSFTNGP03.phx.gbl... > Programmer666 wrote: > > 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? > > 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 > help me understand my own code. 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 Ralph wrote:
Show quoteHide quote > "Karl E. Peterson" <k***@mvps.org> wrote... I was thinking more in terms of him wanting to look at pushed parameters, and such, >> Programmer666 wrote: >> > 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? >> >> 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. > > 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". in addition to return addresses. Just seemed so incredibly retro, y'know? Hi,
"Programmer666" <programmer***@nowhere.com> wrote in message Not from inside VB6 code as such. You have to attach an external debugger or 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? > use the IDE. Programmer666 wrote:
> If you have a problem /bug and you want to check the stack how to do I use a combination of the free add-ins HuntERR (no longer readily > that in VB6? Can it be done without writing code? 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. You can do this and I have used the relevant code myself. It's particularly
useful for generating diagnostics from the field (i.e. from live customer sites with there is no IDE or source code available) to be passed back to Support engineers for evaluation. However, there are a few issues with the way VB exceptions work that make it less useful than it should be See http://groups.google.ie/group/comp.lang.basic.visual.misc/msg/29757bfe9d9e623d?hl=en. The original "black belt" link for the code may have moved or disappeared after all this time but it's worth hunting around for it Tony Proctor Show quoteHide quote "Programmer666" <programmer***@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? > > Thanks
Stupid Format$ Question
OT: Win 3.1 optional args to a class.Init method Save Picture Q IE menu extension Should Reg-free COM still utilise an installation procedure? Office 2003 installer pops up when loading a project Gradient Windows Update KB960715 blocks MSFLXGRD.OCX!!!!! Any solution ? Unsigned C long to signed VB5 Long query. |
|||||||||||||||||||||||