How To Debug a Java/COM Class That Is Called from Visual Basic (206614)



The information in this article applies to:

  • Microsoft Visual J++ 6.0

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.

MORE INFORMATION

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 <Project> Properties, where <Project> 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.

REFERENCES

For support information about Visual J++ and the SDK for Java, visit the following Microsoft Web site:

Modification Type:MajorLast Reviewed:6/14/2006
Keywords:kbBug kbDebug kbFAQ kbhowto kbide kbIDEProject kbJava KB206614