At 07:12 PM 2/3/00 +0000, you wrote:
>
>Hi Paul - I am trying to get JDEbug to work for
>me, connecting via JPDA to a Java program on my
>host, and I suspect I am missing something.
>
> Here is what I do:
>
> -> Fire up xemacs 21.x with JDE 2.1.6b17
>
> -> M-x jde-bug-start-debugger
>
> Seems to work fine - I get this in the *JDEbug* window:
>
> java jde.debugger.Main
>
> (jde-dbo-init-debug-session)
>
> -> M-x jde-bug-attach-local-host
>
> Seems to work fine - I get this in the Process PPPP(1) window:
>
> *** Debugger Output for Process PPPP(1) ***
>
> Attached to process on port PPPP of local host.
> Attached VM (socket) Java Debug Interface (Reference
>Implementation) version 1.0
> Java Debug Wire Protocol (Reference Implementation) version 1.0
> JVM Debug Interface version 1.0
> JVM version 1.2.2-RC2 (Classic VM, build 1.2.2-RC2-K, native
>threads, nojit)
>
>
> -> M-x jde-bug-show-threads
>
> Does not work - the minibuffer says
>
> No target process or process is not suspended
>
> -> M-x jde-bug-set-target-process
>
> Seems to work fine - no error messages.
>
Not necessary. The target process is automatically the one you attached.
> -> M-x jde-bug-show-threads
>
> Still does not work - says the same thing.
>
>>From looking at the code, it appears the "state" of the "process"
>is set to "unknown", which causes jde-dbs-target-process-runnable-p
>to return nil. I don't know why the state is "unknown" or if that
>is correct or what.
>
>
>Am I missing something obvious, or is this a problem other
>people might eventually have as they get more into using JPDA?
>
Try suspending the attached process first (JDEbug->Processes->Suspend). The
attached process is not suspended when the attach occurs, it's merely
waiting for something to happen, user input, debugger input, anything. Most
debug commands will not work on a non-suspended process. So you have to
suspend it first.
- Paul