You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by Harsh J <ha...@cloudera.com> on 2012/02/01 11:51:20 UTC

Re: Debugging 1.0.0 with jdb

I've not used jdb since I almost always use Eclipse to do this, but to
have ant run javac with debug info on, you'll need to find the
relevant <javac> elements and add the attribute 'debug="on"' to them,
to have the javac produce files with debug info. You can then pick up
the generated test jar and run it via jdb?

On Mon, Jan 30, 2012 at 7:17 AM, Tim Broberg <Ti...@exar.com> wrote:
> I'd like to be able to step through unit tests with jdb to debug my classes.
>
> Is there a quick-and-easy way to rebuild with ant such that debug information is included?
>
> Thanks,
>    - Tim.
>
> The information and any attached documents contained in this message
> may be confidential and/or legally privileged.  The message is
> intended solely for the addressee(s).  If you are not the intended
> recipient, you are hereby notified that any use, dissemination, or
> reproduction is strictly prohibited and may be unlawful.  If you are
> not the intended recipient, please contact the sender immediately by
> return e-mail and destroy all copies of the original message.



-- 
Harsh J
Customer Ops. Engineer
Cloudera | http://tiny.cloudera.com/about

RE: Debugging 1.0.0 with jdb

Posted by Tim Broberg <Ti...@exar.com>.
Terrific, thanks, Harsh.

...and I'll take a stab at bringing eclipse up today.

    - Tim.
________________________________________
From: Harsh J [harsh@cloudera.com]
Sent: Wednesday, February 01, 2012 2:51 AM
To: common-dev@hadoop.apache.org
Subject: Re: Debugging 1.0.0 with jdb

I've not used jdb since I almost always use Eclipse to do this, but to
have ant run javac with debug info on, you'll need to find the
relevant <javac> elements and add the attribute 'debug="on"' to them,
to have the javac produce files with debug info. You can then pick up
the generated test jar and run it via jdb?

On Mon, Jan 30, 2012 at 7:17 AM, Tim Broberg <Ti...@exar.com> wrote:
> I'd like to be able to step through unit tests with jdb to debug my classes.
>
> Is there a quick-and-easy way to rebuild with ant such that debug information is included?
>
> Thanks,
>    - Tim.
>
> The information and any attached documents contained in this message
> may be confidential and/or legally privileged.  The message is
> intended solely for the addressee(s).  If you are not the intended
> recipient, you are hereby notified that any use, dissemination, or
> reproduction is strictly prohibited and may be unlawful.  If you are
> not the intended recipient, please contact the sender immediately by
> return e-mail and destroy all copies of the original message.



--
Harsh J
Customer Ops. Engineer
Cloudera | http://tiny.cloudera.com/about

The information and any attached documents contained in this message
may be confidential and/or legally privileged.  The message is
intended solely for the addressee(s).  If you are not the intended
recipient, you are hereby notified that any use, dissemination, or
reproduction is strictly prohibited and may be unlawful.  If you are
not the intended recipient, please contact the sender immediately by
return e-mail and destroy all copies of the original message.