>>>>> "Paul" == Paul Kinnucan <[EMAIL PROTECTED]> writes:
Paul> I'm not asking you to look at the elisp. That's my
Paul> job. Apparently, the JDK 1.2.2 and JDK 1.3 plugins for browsers
Paul> (available from Sun) accept being attached to a JPDA-based
Paul> debugger, e.g., JDEbug. So why don't you try installing one of
Paul> the plugins, starting it with the necessary debug options (see
Paul> Chuck Irvine's message), and try attaching JDEbug to the plugin
Paul> (see the JDEbug documentatiion). In principal this should allow
Paul> you to debug applets running in Netscape (does IE support the
Paul> JDK plugins?), using JDEbug. You can contribute by verifying
Paul> whether this is possible and letting the rest of us know if you
Paul> running into any problems.
I haven't tried the plugin magic yet, but I've tried to reproduce what
Forte does. And it seems to work. I have a severe performance problem,
but I don't think that's necessarily linked to this.
Here are the details:
In a console I run this command to launch the interpreter:
java -classic -Xdebug -Xnoagent \
-Xrunjdwp:transport=dt_socket,address=5678,suspend=y,server=y \
-Djava.security.policy=appletDebugging.policy \
-Djava.compiler=NONE \
-Xbootclasspath:/usr/java/jdk1.3/lib/tools.jar:\
/usr/java/jdk1.3/jre/lib/rt.jar:\
/usr/java/jdk1.3/jre/lib/i18n.jar:\
/usr/java/jdk1.3/jre/classes: \
-classpath /local/jskov/projects/java/demo:\
/usr/java/jdk1.3/lib/dt.jar:\
/usr/java/jdk1.3/lib/tools.jar:\
/usr/java/jdk1.3/src.jar:/usr/java/jdk1.3/lib/tools.jar \
sun.applet.AppletViewer index.html
The applet (and index.html) is in /local/jskov/projects/java/demo. I'm
using Sun's 1.3 JDK (updated beta, IIRC).
appletDebuggin.policy is:
------------------------------------------------------------
grant {
permission java.security.AllPermission;
};
------------------------------------------------------------
index.html is:
------------------------------------------------------------
<HTML>
<HEAD><TITLE>Demo</TITLE></HEAD>
<BODY bgcolor="#1c1542" ><CENTER>
<applet code="Demo.class" WIDTH=640 HEIGHT=480 >
</applet>
</CENTER></BODY>
</HTML>
------------------------------------------------------------
After that I can connect to the virtual machine from jdebug and
control the applet.
It runs really incredibly slow (10-20 seconds before a breakpoint on
init() is hit, and between lines executed when stepping), but it seems
to be working, more or less.
Doesn't show variable values though:
Attached to process on port 5678 of local host.
Attached VM (socket) Java Debug Interface (Reference Implementation) version 1.3
Java Debug Wire Protocol (Reference Implementation) version 1.0
JVM Debug Interface version 1.0
JVM version 1.3.0beta_refresh (Classic VM, green threads, nojit)
vm started...
All threads suspended...
Running 5678.
Error: cannot get local variables.
Reason: nil.
Breakpoint hit at line 112 in Demo (Demo.java) on thread thread applet-Demo.class. All
threads suspended.
I'll try the plugin method to see if it makes a difference.
Jesper