RE: Debugging remote 1.4.2 jvm
I assume attach mode is further down the road, for either jdb or Jdebug mode? One question about functionality: In either debugger, is it possible now, or expected, that if you get to a point where you're viewing the value of a ByteArrayOutputStream, to be able to dynamically view the contents as String (essentially view new String(baos.toByteArray()))? -Original Message- From: Paul Kinnucan [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 10:15 AM To: Karr, David Cc: [EMAIL PROTECTED] Subject: Debugging remote 1.4.2 jvm Karr, David writes: I've decided to try experimenting with the jde debugger to see if it has features that make it worth using over netbeans. I first set jde-debugger to Jdebug in customize. Should I be using Jdebug for this, or jdb? I'd start with using the JDEE's interface to jdb. I revised the JDEE's debug infrastructure recently and ported jdb to use the new infrastructure. Still to be done is to port JDEbug. The jdb interface appears to be pretty solid based on my use of it. I've been using it to debug an XML application. This requires putting the debugger in listen mode and then starting the other application. It works very nicely. I am able to step through the code and examine variable values. Paul I'm not certain exactly what I'm supposed to set up now. I see the user guide mentions setting the location of the JPDA libraries. It has examples for JDK 1.3 and 1.2.2, but not 1.4.x. The customize info for that variable specifically says you only need to set this variable for a 1.2 JVM. The jre home variable seems to be needed if I start the debuggee through the debugger. I'm not. I'm only going to be remotely connecting, so it appears that I wouldn't set that variable. I set the Server Socket variable to the JPDA port my debuggee is configured for. The customize info for this variable seems ambiguous whether this is the correct variable to set. At this point, the contents of the Attach Process menu is grayed out, so I can't select a server to connect to.
RE: Debugging remote 1.4.2 jvm
-Original Message- From: Paul Kinnucan [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 8:05 AM To: Karr, David Cc: Paul Kinnucan; [EMAIL PROTECTED] Subject: RE: Debugging remote 1.4.2 jvm Karr, David writes: I assume attach mode is further down the road, for either jdb or Jdebug mode? I don't know why I bother writing documentation for the JDEE. I read the documentation. I couldn't get Attach mode to work. Since you replied saying you were using listen mode, I assumed you meant that Attach mode isn't working yet. If that's not the case, then I'll continue trying to get Attach working with jdb mode. Paul -Original Message- From: Paul Kinnucan [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 10:15 AM To: Karr, David Cc: [EMAIL PROTECTED] Subject: Debugging remote 1.4.2 jvm Karr, David writes: I've decided to try experimenting with the jde debugger to see if it has features that make it worth using over netbeans. I first set jde-debugger to Jdebug in customize. Should I be using Jdebug for this, or jdb? I'd start with using the JDEE's interface to jdb. I revised the JDEE's debug infrastructure recently and ported jdb to use the new infrastructure. Still to be done is to port JDEbug. The jdb interface appears to be pretty solid based on my use of it. I've been using it to debug an XML application. This requires putting the debugger in listen mode and then starting the other application. It works very nicely. I am able to step through the code and examine variable values. Paul I'm not certain exactly what I'm supposed to set up now. I see the user guide mentions setting the location of the JPDA libraries. It has examples for JDK 1.3 and 1.2.2, but not 1.4.x. The customize info for that variable specifically says you only need to set this variable for a 1.2 JVM. The jre home variable seems to be needed if I start the debuggee through the debugger. I'm not. I'm only going to be remotely connecting, so it appears that I wouldn't set that variable. I set the Server Socket variable to the JPDA port my debuggee is configured for. The customize info for this variable seems ambiguous whether this is the correct variable to set. At this point, the contents of the Attach Process menu is grayed out, so I can't select a server to connect to.
Re: Debugging remote 1.4.2 jvm
I couldn't get attach mode to work, either[1]. -- Ed [1] http://article.gmane.org/gmane.emacs.jdee/4017 Karr, David wrote: -Original Message- From: Paul Kinnucan [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 8:05 AM To: Karr, David Cc: Paul Kinnucan; [EMAIL PROTECTED] Subject: RE: Debugging remote 1.4.2 jvm Karr, David writes: I assume attach mode is further down the road, for either jdb or Jdebug mode? I don't know why I bother writing documentation for the JDEE. I read the documentation. I couldn't get Attach mode to work. Since you replied saying you were using listen mode, I assumed you meant that Attach mode isn't working yet. If that's not the case, then I'll continue trying to get Attach working with jdb mode. Paul [ ... ]
Re: Debugging remote 1.4.2 jvm
Ed Mooney writes: I couldn't get attach mode to work, either[1]. Attaching to a running process works for me as documented in the JDEE's jdb user's guide. JDEE version: 2.3.4 XEmacs version: 21.4 (patch 13) Rational FORTRAN [Lucid] (i586-pc-win32) of Sun May 25 2003. Windows version: Windows XP Paul -- Ed [1] http://article.gmane.org/gmane.emacs.jdee/4017 Karr, David wrote: -Original Message- From: Paul Kinnucan [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 8:05 AM To: Karr, David Cc: Paul Kinnucan; [EMAIL PROTECTED] Subject: RE: Debugging remote 1.4.2 jvm Karr, David writes: I assume attach mode is further down the road, for either jdb or Jdebug mode? I don't know why I bother writing documentation for the JDEE. I read the documentation. I couldn't get Attach mode to work. Since you replied saying you were using listen mode, I assumed you meant that Attach mode isn't working yet. If that's not the case, then I'll continue trying to get Attach working with jdb mode. Paul [ ... ]
Re: Debugging remote 1.4.2 jvm
Paul Kinnucan writes: Ed Mooney writes: I couldn't get attach mode to work, either[1]. Attaching to a running process works for me as documented in the JDEE's jdb user's guide. JDEE version: 2.3.4 XEmacs version: 21.4 (patch 13) Rational FORTRAN [Lucid] (i586-pc-win32) of Sun May 25 2003. Windows version: Windows XP Here are the steps I used: 1. Set jde-sourcepath for my project to ./src 2. Set jde-run-option-debug as follows: Jde Run Option Debug: * [Value Menu] Connect: Mode: [Value Menu] Server Data Transport: [Value Menu] Shared Memory Shared Memory Name: [Value Menu] javadebug Socket Host: [Value Menu] nil Socket Port: [Value Menu] Suspend?: [Value Menu] No 3. Put point on the line where I wanted to set a breakpoint and selected Toggle Breakpoint from the Jdb menu. The JDEE highlighted the line in red. 4. Pressed C-c C-v C-r to run my program. My program ran to the point where it prompted me for input in the run buffer in Emacs. 5. Opened a new frame on the source buffer for the program. 6. Selected External Process-Attach Via Shared Memory from the buffer's Jdb menu. The JDEE started jdb and passed the breakpoint to it. Jdb responded with the following messages in the jdb buffer. Initializing jdb ... stop at jmath.Test:27 Set breakpoint jmath.Test:27 The breakpoint turns red to signify that it is enabled. 7. I selected Continue from the Jdb menu. Jdb responds: cont Nothing suspended. 7. I switched to my program's run buffer and entered some text and hit return. The debugger runs my program to the breakpoint and pauses. Breakpoint hit: thread=main, jmath.Test.main(), line=27 bci=163 27LinearSystem s = new LinearSystem(A); 8. I displayed the value of a local variable by entering a print command in the jdb buffer: main[1] print B[1] B[1] = 5.0 I then stepped a few lines and selected Continue from the Jdb menu to run the program to completion. Paul Paul -- Ed [1] http://article.gmane.org/gmane.emacs.jdee/4017 Karr, David wrote: -Original Message- From: Paul Kinnucan [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 8:05 AM To: Karr, David Cc: Paul Kinnucan; [EMAIL PROTECTED] Subject: RE: Debugging remote 1.4.2 jvm Karr, David writes: I assume attach mode is further down the road, for either jdb or Jdebug mode? I don't know why I bother writing documentation for the JDEE. I read the documentation. I couldn't get Attach mode to work. Since you replied saying you were using listen mode, I assumed you meant that Attach mode isn't working yet. If that's not the case, then I'll continue trying to get Attach working with jdb mode. Paul [ ... ]