Hi,

We have a executable written in C that starts up a JVM (using JNI) and
calls various Java methods.  I'm using JDE 2.1.6beta16 with Emacs 20.3.1
on WinNT 4.0 to connect to the remote JVM and debug the Java code.  After
some trial and error, I have been able to get this setup working.  But,
I have some questions and would appreciate some clarifications.

1) I use JDebug->Processes->Start Debugger to start after loading up
   the Java file that I want to debug.  Then, I use JDebug->Processes->
   Attach Process->Via Shared Memory to attach to the running VM.
   This command prompts me for the process name, and if I enter the
   process name (as shown in the WinNT Task Mgr), I get the following
   error.

   ------------ Contents of ifbld80.exe(4) buffer ------------
   *** Debugger Output for Process ifbld80.exe(3) ***

   Error: cannot attach process ifbld80.exe.
   Reason: Error occured managing application streams.
   -----------------------------------------------------------

   ------------ Contents of *JDebug* buffer ------------
   javaw -classpath
d:/users/sxramasw/emacs/jde-2.1.6beta16/java/lib/jde.jar;e:/jpda/lib/jpda.jar
jde.debugger.Main

   (jde-dbo-init-debug-session)

   JDE> -1 137 attach_shmem 4 ifbld80.exe

   (jde-dbo-command-error 137 "Error occured managing application streams")
   -----------------------------------------------------------

   It turns out that I have to enter the JVM password (which is always
   javadebug for JDK 1.2.2).  Is this correct?  If so, should the prompt
   be changed to "Remote JVM Password:"?

2) Do Attach Process->On Local Host and Attach Process->On Remote Host
   work on NT?  I tried Attach Process->On Local Host and it prompted me
   for a Process Port.  What is this port number and how do I figure out
   what to enter here?

3) When you hit a break-point, how do you display the stack?

4) Is there anyway to make the Debugger output buffer scroll down to the
   bottom automatically?  I thought someone had asked about this a while
   ago and Paul had said he would add it in the next beta.  Does this work
   for normal Java debugging?

5) Any idea when the up/down-stack and conditional breakpoint support
   will be available?

My .emacs file is attached.

Thanks,

Suresh
begin:vcard 
n:Ramaswamy;Suresh
tel;fax:(650) 506-7419
tel;home:(650) 572-1931
tel;work:(650) 506-8463
x-mozilla-html:TRUE
org:Oracle Corporation;Oracle Developer
version:2.1
email;internet:[EMAIL PROTECTED]
title:Senior Technical Staff
adr;quoted-printable:;;200, Oracle Parkway=0D=0AM/S 2op949=0D=0A;Redwood Shores;CA;94065;USA
x-mozilla-cpt:;-1
fn:Suresh Ramaswamy
end:vcard

Reply via email to