That is very interesting. 
It may be hard, because the line numbers in java byte code needs to associated 
with the lines numbers in the source file.
However, It may be possible to do that in emacs and vim.

-----Original Message-----
From: Andrew Pennebaker [mailto:apenneba...@42six.com] 
Sent: Thursday, October 10, 2013 11:26 AM
To: Maven Users List
Subject: Re: Is there a Maven plugin for the Java debugger (jdb)?

Yes, various Java IDEs can debug Java code, including Java code organized in 
Maven projects. What I'm interested in is debugging Java code in a Maven 
project with an arbitrary text editor, not necessarily Eclipse or Intellij, for 
example Emacs, or even Notepad, by invoking Maven tasks that point to Maven 
plugins that interact with jdb.


On Thu, Oct 10, 2013 at 2:09 PM, Sankaran, Nambi <nsanka...@ebay.com> wrote:

> It very is easy to debug maven from eclipse, I have documented how I 
> debug maven-jetty-plugin using eclipse
>
> http://nambisankaran.wordpress.com/2012/06/30/running-jetty-server-wit
> h-maven/
>
> -----Original Message-----
> From: Andrew Pennebaker [mailto:apenneba...@42six.com]
> Sent: Thursday, October 10, 2013 11:04 AM
> To: Maven Users List
> Subject: Re: Is there a Maven plugin for the Java debugger (jdb)?
>
> I could also use an IDE for package management, but I'd rather use 
> plain Maven and an arbitrary text editor instead.
>
>
> On Thu, Oct 10, 2013 at 11:21 AM, Russell Gold <r...@gold-family.us>
> wrote:
>
> > The simplest way to do this is actually to run it in your IDE directly.
> > IntellijIDEA community edition can import your maven project and 
> > thus get all of the dependencies. Then you just run the program in 
> > the debugger. I presume Eclipse can do something similar.
> >
> > On Oct 10, 2013, at 10:52 AM, Andrew Pennebaker 
> > <apenneba...@42six.com>
> > wrote:
> >
> > > Yes. I'm looking for a task like `mvn jdb:debug <Class>` that 
> > > starts a
> > jdb
> > > session on <Class>.main().
> > >
> > > I can run jdb on individual Java code outside of a Maven 
> > > structure, but
> > I'm
> > > not sure how to inform jdb of Java code in a Maven project, 
> > > Maven's CLASSPATH handling, etc. etc.
> > >
> > >
> > > On Thu, Oct 10, 2013 at 10:46 AM, Benson Margulies <
> > bimargul...@gmail.com>wrote:
> > >
> > >> What would that mean? Do you want to execute the program in the
> > debugger?
> > >>
> > >> On Thu, Oct 10, 2013 at 10:38 AM, Andrew Pennebaker 
> > >> <apenneba...@42six.com> wrote:
> > >>> I'd like to run jdb over some of my classes in a Maven project. 
> > >>> Is
> > there
> > >> a
> > >>> plugin I can drop into my pom.xml?
> > >>
> > >> -----------------------------------------------------------------
> > >> --
> > >> -- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > >> For additional commands, e-mail: users-h...@maven.apache.org
> > >>
> > >>
> >
> > -----------------
> > Author, Getting Started with Apache Maven < 
> > http://www.packtpub.com/getting-started-with-apache-maven/video>
> >
> > Come read my webnovel, Take a Lemon <http://www.takealemon.com>, and 
> > listen to the Misfile radio play < 
> > http://www.fuzzyfacetheater.com/misfile/>!
> >
> >
> >
> >
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to