Re: Debugging with JDEE

[email protected] (Javier S. Lopez)
Newsgroups gmane.emacs.jdee
Message-ID <[email protected]>
I recommend using jdb. I haven't used jdebug in a while. But the last
time I used it, stepping through the code was slower than with
jdb. The speed difference is considerable. Obtaining the values from
variables from step to step was a bit troublesome. The most annoying
part was the debugger getting out of synch. This used to lead to
jdebug getting hung. This behavior did not happen consistently it will
work correctly for most of the debugging session until you get to the
part you were interested in. Then debugger will get stuck and you have
to start all over again. I was never able to figure out what triggered
the condition.

The only feature jdb does not have which I wish it did is conditional
breakpoints. jdebug supports this feature to some extent. For
everything else I find jdb sufficient.

For large projects the easier way to get either debugger working is to
start your application using the flags -Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,addresss=4444
and then attach using either debugger.

For a simple test case just running the class within the debugger is
enough.

There are other integrations to debuggers like JSwat. I haven't used
them but I think they only start the debugger from emacs.

Javier

exits funnel <[email protected]> writes:

> Hello,
>
> I've been using JDE for editing java files off and on
> for sometime, but while I love it for editing I've
> always fallen back to other IDEs for debugging.  I've
> finally decided to try to use JDE for debugging and
> I'm a bit stuck from the get go.  I'm trying to get
> the JDebug up and running but the manual mentions a
> few variables - for example,
> jde-bug-vm-includes-jpda-p - which I can't even find
> to customize in jde ver 2.3.5.1.  Let me step back and
> ask a general question.  Which facilities do you
> recommend especially with respect to ease of use - jdb
> or jdebug?  Thanks.
>
> -exits
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 

-- 
Javier S. Lopez
Software Developer
Forum Systems, Inc.
95 Sawyer Road, Suite 110, Waltham, MA 02453
http://www.forumsys.com


The information contained in this electronic mail and any attached
document is the confidential and proprietary business information of
Forum Systems, Inc. It is intended solely for the addressed recipient
listed above. It may not be distributed in any manner without the
express written consent of Forum Systems, Inc.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.