Re: Debugger
From: Peter Bradley (apvx95_at_dsl.pipex.com)
Date: 12/21/03
- Next message: Phil Brown: "Re: Help sought trying to add java to mozilla 1.5"
- Previous message: Thomas Schodt: "Re: Debugger"
- In reply to: Thomas Schodt: "Re: Debugger"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 21 Dec 2003 21:18:47 -0000
Thomas,
I now have a bit more info.
First I found that jdb was not on my path, so I fixed that. Still no joy in
the IDE.
Ran
jdb <myClass> // <myClass> represents the name of the class I'm trying to
debug
from the command line and everything works fine (except for the interface!).
That is, the program stopped at the first line, I could set a breakpoint,
stop at the breakpoint, step through the code etc, etc.
Ran
java -Xdebug -Xrunjdwp:transport=dt_shmem,address=jdbconn,server=y,suspend=n
<myClass>
When I issued this command, the program just ran without stopping. When I
then issued the command:
jdb -attach jdbconn
I got the message:
Error accessing shared memory, rc = -1
<stack trace>
Fatal error
Unable to attach to target VM
When I tried the same thing with the transport set to dt_socket, the program
did not run but I got the message:
Invalid listen port number jdbconn
When I substituted a (random) port number for jdbconn, I got the error:
Transport dtsocket failed to initialize, rc = 509
Doesn't mean a thing to me, I have to say. Does it to you?
Cheers
Peter
"Thomas Schodt" <news0310@xenoc.$DEMON.co.uk> wrote in message
news:Xns9458C38DD9355xenoc@158.152.254.254...
> "Peter Bradley" <apvx95@dsl.pipex.com> wrote in
> news:3fe5ee49$0$18034$cc9e4d1f@news.dial.pipex.com:
>
>
> > I have a problem getting the Java debugger to work under Windows XP.
> > At first I thought it was related to the NetBeans IDE, but
> > experimentation has shown that I cannot get the debugger to work in
> > NetBeans, Sun ONE, or JBuilder (haven't tried Eclipse, but I will if
> > anyone wants me to). The error message I get is:
> >
> > Transport dt_socket failed to initialize, rc = -1.
>
> Have you tried launching jdb from the command line?
>
> Lookup the options for jdb and java if you need to
> launch a java app outside the debugger
> and connect to it with jdb later.
- Next message: Phil Brown: "Re: Help sought trying to add java to mozilla 1.5"
- Previous message: Thomas Schodt: "Re: Debugger"
- In reply to: Thomas Schodt: "Re: Debugger"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|