LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-04-2011, 08:33 AM   #1
xeon123
Member
 
Registered: Sep 2006
Posts: 374

Rep: Reputation: 16
debug remotely a java program with ddd


Is it possible to debug remotely a java program with ddd (data display debugger)? If so, how can I do it?

Thanks,
 
Old 06-04-2011, 01:31 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

If you're using OpenJDK or SunJDK, there are multiple remote debugging tools available, starting the "jdb".

If you're using Gnu Java, on the other hand ... I would strongly encourage you to move away from GJC and use OpenJDK or SunJDK instead. One reason is "better portability". The biggest reason is that using OpenJDK or SunJDK allow you to take fullest advantage of the vast "Java ecosystem" out there.

Nevertheless, if you're using Gnu Java, then you should be able to do remote debugging via GDB:

http://gcc.gnu.org/java/gdb.html
http://sourceware.org/gdb/current/on...Debugging.html
 
Old 06-05-2011, 06:07 AM   #3
xeon123
Member
 
Registered: Sep 2006
Posts: 374

Original Poster
Rep: Reputation: 16
I started to use JConsole
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
debug library source in GDB/DDD knobby67 Programming 1 08-25-2009 02:24 PM
LXer: Debug Java applications remotely with Eclipse LXer Syndicated Linux News 0 12-15-2008 04:20 PM
hello how debug the kernel with ddd? mjalalynia Linux - Software 1 08-27-2008 04:57 AM
how debug kernel with ddd? how debug the kernel with ddd? mjalalynia Linux - Kernel 2 08-25-2008 06:50 AM
How to debug a program remotely mcm1738 Programming 3 12-19-2005 07:36 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration