FIX: Cannot Debug Visual J++ Programs on Internet Explorer 4.0ID: Q167998
|
After installing Internet Explorer 4.0 in the integrated desktop mode, you will no longer be able to debug Java applets with Visual J++ 1.1. If you begin an applet debug session in Visual J++, the applet appears to run, but you will not hit any breakpoints or be able to step into the applet. After exiting the browser, the following dialog box appears:
The browser or interpreter you specified has exited without running your program
Please note that browsers or interpreters other than Internet Explorer and Jview may not support Visual J++ debugging.
Visual J++ relies on being able to modify the debug process environment
block before creating the Internet Explorer debugging process. When
Internet Explorer 4.0 is installed in the integrated desktop mode, this is
no longer possible. If Internet Explorer 4.0 is installed in the standalone
browser mode, debugging with Visual J++ should function normally.
In the case where debugging was not possible, even with Internet Explorer
4.0 installed in the non-integrated desktop mode, Visual J++ debugging will
function normally with the patches supplied in Visual Studio Service Pack 3.
This bug can be fixed by installing the Service Pack 3 of Visual Studio 97
and Internet Explorer 4.01 release. The Service Pack can be applied to both
the Visual J++ 1.1 shipped with Visual Studio 97 as well as the Visual J++
1.1 that is sold as a standalone product.
Note that installing the Service Pack 3 on the Visual J++ 1.1 free Trial
Edition is not a configuration that has been tested by Microsoft. While
there are no expected problems with applying the Service Pack to the free
Trial Edition, it has not been tested and is therefore not recommended.
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
This bug requires fixes in both Visual J++ and in Internet Explorer 4.01. The Visual J++ component of this bug has been corrected in Visual Studio 97 Service Pack 3, the Internet Explorer component of this bug is fixed in the Internet Explorer 4.0 release.
For additional information about the Visual Studio 97 Service Pack 3,
please see the following article in the Microsoft Knowledge Base:
Q170365 INFO: Visual Studio 97 Service Packs - What, Where, and Why
http://msdn.microsoft.com/vstudio/sp/
This bug has been fixed by adding a "-new" switch (you must use "-new"
because the "/new" syntax is not supported) to Internet Explorer 4.0. This
switch causes Internet Explorer to launch a new process that Visual J++ is
able to modify and attach to. As noted above, this switch is enabled in the
released version of Internet Explorer 4.0.
To launch Internet Explorer 4.0 with the "-new" switch, you will need to
add "-new" to the projects settings for each project you create. From the
Project menu, select Settings. Click the Debug tab in the Project Settings
dialog box, and select the Browser category in the Categories drop-down
list. The Browser edit control contains a full path to the Explore.exe
executable. Add the "-new" switch as a parameter to Iexplore.exe:
C:\Program Files\Internet Explorer\IEXPLORE.EXE -new
For the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java,
please see the following pages on the Microsoft Technical Support site:
http://support.microsoft.com/support/visualj/
http://support.microsoft.com/support/java/
Additional query words:
Keywords : kbDebug kbide kbVJ kbVS97sp1fix kbVS97sp2fix
Version : WINDOWS:1.1,4.0,4.01
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: April 22, 1999