This content has been marked as final. Show 9 replies
User, please tell us which jdev version you are using.
What happens if you set a break point in a class your applet uses?
Then when you run the the applet (by using the URL to reach the html where the applet is embedded) and you call code where you have set the break point the execution should hold and you can step through the code.
Jdev version: 11 Release g2
Nothing happens in case of putting a breakpoint, which is global moreover.
I am deploying war to the Integrated Server (Weblogic) that is run in Debug Mode.
I am running it also within the JDeveloper.
And from a browser, I am reaching to the url, and Applet is running.
And does not stop in any breakpoint. It just runs and keep going.
For a test, you can add a line like
and call this line via a button click. Start the server in debug mode and run your applet. Navigate to the button and click it.
int i = 5/0;
This will get you a nice NPE at this line. Now you should see a stack trace in the log window. Click on the line where the NPE happened. Now you should be able to set break point at other positions. Start the applet again and see if the other break points are working now.
What I understand is that you want to debug an applet. Applets do not execute within the application server. They are executed by the JVM of the local browser (e.g. by the browser's Java Plug-In) locally on the workstation. You should attach your debugger to this JVM instead of the application server's JVM. (You cannot debug an applet by right-clicking the Web application in JDeveloper and starting it in debug mode, because in this way you attach the debugger to the application server's JVM (e.g. to WebLogic's JVM) but not to the browser's JVM).
In order to debug an applet you should configure the browser's Java Plug-In to start in a debug mode and then you should attach a Java debugger to it. You can use either a standalone Java debugger or the debugger integrated in JDeveloper IDE. Have a look here for instructions:
[url http://docs.oracle.com/javase/6/docs/technotes/guides/plugin/developer_guide/debugger.html#how]How to Debug Applets in Java Plug-in
[url http://docs.oracle.com/cd/E16162_01/user.1112/e17455/run_debug_java.htm#BABBDICF]Debugging Remote Java Programs in JDeveloper
Actually, because of that in my first post I had written this:
"This should be about Remote Debugging."
But the answers hadn't come in this way.
I had tried to configure JDeveloper for remote debugging.
But the thing that I didn't know was that I also should configure Java Plug-In.
I will try it, and post the result.
Thank you very much.