VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

VB+ASM How to break into the Visual Studio debugger.

Paul Caton  (14 Submissions)   Miscellaneous   Visual Basic 5.0   Advanced   Wed 3rd February 2021

The included cDebug.cls class allows the user to break their application (or the VB IDE if run from there, not recommended) into the Visual Studio debugger. Make the sample project, run the executable, click the 'Break into debugger' button, a dialog will be displayed, click the Cancel button to enter the Visual Studio debugger, dismiss the message box and then press F10 twice to step thru the software interupt and the return statements and you'll be back in the VB calling routine. Provided you haven't run the program from the IDE, you should now see the Visual Basic statements interspersed with their implementing assembler codes. To ensure that you can view the VB source with your own programs.... make sure that the following options are set on the Project/Project Properties/Compile dialog... Compile to Native Code, Create Symbolic Debug Info. Also, before running the application to be debugged, be certain that the source code files on disk are up to date by selecting File/Save Project. I should stress that this submission is a shameless VB+ASM promotion, as the same trick can be achieved with an API call, as is demonstrated in the sample.

Rate VB+ASM How to break into the Visual Studio debugger. (30(30 Vote))

Download VB+ASM How to break into the Visual Studio debugger.

VB+ASM How to break into the Visual Studio debugger. Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters