VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



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

by Paul Caton (14 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 5.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (30 Votes)

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.

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

Download VB+ASM How to break into the Visual Studio debugger. (4 KB)

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

No comments have been posted about VB+ASM How to break into the Visual Studio debugger.. Why not be the first to post a comment about VB+ASM How to break into the Visual Studio debugger..

Post your comment

Subject:
Message:
0/1000 characters