From: op132650c@mail.telepac.pt
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb@sourceware.org
Subject: Re: attach to a socket in localhost:8787
Date: Thu, 28 Sep 2006 14:21:00 -0000 [thread overview]
Message-ID: <1159453247.3m65oqlx4rpc@w6.webmail.telepac.pt> (raw)
In-Reply-To: <20060928125344.GA2415@nevyn.them.org>
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
>
next prev parent reply other threads:[~2006-09-28 14:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-28 8:14 op132650c
2006-09-28 12:53 ` Daniel Jacobowitz
2006-09-28 13:29 ` Denis PILAT
2006-09-28 14:21 ` op132650c [this message]
2006-09-28 15:01 ` Daniel Jacobowitz
2006-09-28 18:32 ` Michael Snyder
2006-09-28 20:25 ` op132650c
2006-09-28 22:25 ` Michael Snyder
2006-09-28 22:25 ` Michael Snyder
2006-09-28 18:26 ` Michael Snyder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1159453247.3m65oqlx4rpc@w6.webmail.telepac.pt \
--to=op132650c@mail.telepac.pt \
--cc=drow@false.org \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox