This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: attach to a socket in localhost:8787


I want to debug my Enterprise archive (ear) that is deployed in Jboss
Application Server.
When I start Jboss Application Server(AS) in debug mode, i've the following
message:


===============================================================================
.
  JBoss Bootstrap Environment
.
  JBOSS_HOME: c:\jboss-4.0.3SP1\bin\\..
.
  JAVA: D:\Java\jdk1.5.0_06\bin\java
.
  JAVA_OPTS: -Xdebug
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y 
-Dprogram.name=debug.bat -Xms128m -Xmx512m
.
  CLASSPATH: D:\Java\jdk1.5.0_06\lib\tools.jar;c:\jboss-4.0.3SP1\bin\\run.jar

".
===============================================================================
.
Listening for transport dt_socket at address: 8787"

I use to debug my ear in Eclipse, creating a remote connection Standard (Socket
Attach) to localhost:8787.

Now, i want to debug my ear using gdb.

I used to do inside gdb:
target remote localhost:8787

but this abort the AS.

I hope that this will help.

Thanks,
Pedro







Citando Daniel Jacobowitz <drow@false.org>:

> On Thu, Sep 28, 2006 at 09:14:07AM +0100, op132650c@mail.telepac.pt wrote:
> > Hi,
> >
> > i would like to debug my program remotely, attaching my the gdb to a socket
> on
> > localhost:8787. How can i do that?
> >
> > I've tried target remote 127.0.0.1:8787 and it doesn't work. Ie, the Jboss
> > application server aborts.
>
> Sorry, but we need a lot more information about what you're doing to
> help.  What's running on that port - is it gdbserver?  Does it abort
> when you connect or when you try to step or...?
>
> --
> Daniel Jacobowitz
> CodeSourcery
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]