3

Not to flog a dead horse, but I found a project on CodePlex called StackWalker, which provides stack trace for native applications (C++ apps). Not knowing much about modern C++, would this also work for VB6 apps? Are VB6 functions somehow different from those in C++?

Community
  • 1
  • 1
AngryHacker
  • 59,598
  • 102
  • 325
  • 594

1 Answers1

6

That depends first of all on how you build your vb6 app. Project + Properties, Compile tab. Ensure that the "Compile to Native Code" radiobutton is selected. And turn on the "Create Symbolic Debug Info" option is checked, this tool requires a PDB to give useful stack traces. Beware that it won't work well when you run code from the IDE, that always gets built to p-code.

The harder problem is debugging info for msvbvm60.dll, the VB6 virtual machine. Most any code you run goes through this support DLL, even when you build to native code. The PDB you need for it is no longer available from the Microsoft symbol server. Not sure why, possibly because it really is a dead horse.

Hans Passant
  • 922,412
  • 146
  • 1,693
  • 2,536
  • 5
    You can get the 6.0.98.2 MSVBVM60.DLL (the one that shipped with XP SP3) MSVBVM60.PDB from the Windows XP SP3 Symbol pack cabinet file (about 250MB). – Syclone0044 Jan 13 '15 at 01:36