Microsoft KB Archive/206614

= How To Debug a Java/COM Class That Is Called from Visual Basic =

Article ID: 206614

Article Last Modified on 6/14/2006

-

APPLIES TO


 * Microsoft Visual J++ 6.0 Standard Edition

-



This article was previously published under Q206614



SUMMARY
To debug a Java/Component Object Model (COM) object that is called from Microsoft Visual Basic, you must generate an .exe file for your Visual Basic code and then tell Visual J++ to launch your Visual Basic .exe instead of JVIEW, WJVIEW, or Microsoft Internet Explorer.



Steps to Set Up Debugging

 * 1) Generate an .exe file for your Visual Basic code that calls your Java/COM object.
 * 2) In Visual J++, open your Java/COM project.
 * 3) On the Project menu, click  Properties, where  is your project name.
 * 4) On the Launch tab, click Custom.
 * 5) In the Program Edit list, type the fully qualified path to your Visual Basic .exe.
 * 6) Set any appropriate breakpoints in the Java code.
 * 7) On the Debug menu, click Go.

This starts your Visual Basic .exe and calls the Java/COM object appropriately. When the Visual J++ debugger reaches one of the break points that you set within your object, it breaks and allows you to debug your Java code.

