Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Debug on Unix

 
Sherif Shehab
Ranch Hand
Posts: 485
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all ,

Please, i wanna debug some java code on unix os throw Xserver but i wanna an IDE with GUI ,Does eclipse help me in that ?
 
Vinod K Singh
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, Eclipse and NetBeans both can be used to debug on *nix platform.
 
Haulyn Jason
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is that a way to debug java without IDEs in Unix environment?
 
Satya Maheshwari
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Haulyn R. Jason:
Is that a way to debug java without IDEs in Unix environment?


You may want to try out jdb. See here:
http://www.zdnetasia.com/builder/program/java/0,39045537,39179162,00.htm
 
Sherif Shehab
Ranch Hand
Posts: 485
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi but i need a tool GUI based not console based.. by the way does anyone know any good and free Xserver to run GUI on unix ?
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15214
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What kind and version of Unix are you running on what hardware? Almost all Unix-like operating systems come with an X server, you normally don't need to install it yourself. X.Org is used on most Unix-like operating systems; it's the reference implementation for the X Window System and is free and open source.

Vinod already gave you some answers to your first question: have a look at Eclipse or NetBeans.
 
Joe Ess
Bartender
Pie
Posts: 9264
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also debug remotely, so the program can be running a system without an Xserver while you are debugging on another machine which does.
Here are some examples
 
Sherif Shehab
Ranch Hand
Posts: 485
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jesper Young:
What kind and version of Unix are you running on what hardware? Almost all Unix-like operating systems come with an X server, you normally don't need to install it yourself. X.Org is used on most Unix-like operating systems; it's the reference implementation for the X Window System and is free and open source.

Vinod already gave you some answers to your first question: have a look at Eclipse or NetBeans.

HI About the unix kind it is HP unix hardware i have no idea.. ok How to run the xserver on the unix machine , PS: i'm connecting via Putty software..
 
Joe Ess
Bartender
Pie
Posts: 9264
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will probably need to get your Unix administrator involved if you want to get Xwindows working. Setting it up is not a task I'd recommend for the Unix newbee.
Try remote debugging. All you have to do is set the correct options on the VM and point your debugger (be it Netbeans, Eclipse or something else at the VM's port.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sherif Shehab:

HI About the unix kind it is HP unix hardware i have no idea.. ok How to run the xserver on the unix machine , PS: i'm connecting via Putty software..


Ah, OK. You're sitting on a Windows machine (or something) and connecting to an HP machine via PuTTY. You want to display graphical applications on your desktop which are physically running on the HP machine. Is this right?

In this case, you do not need or want to run an X Server on the HP machine; you need to run an X server on your desktop (Windows?) machine. The local X server is used by the remote programs to display their GUIs.

There are many commercial X servers for Windows, and probably several free ones. The one I have had the best experiences with is the X server you can run as part of Cygwin -- see www.cygwin.com.

If your desktop is not Windows, but something else, you'll need some other product, of course.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15214
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See also Sherif's other topic were we were discussing the same issue (that one's closed now).
 
Sherif Shehab
Ranch Hand
Posts: 485
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jesper Young:
See also Sherif's other topic were we were discussing the same issue (that one's closed now).


Hi Jesper ,
In the other IDE forum i was asking about the java IDE working on xserver but here i'm asking about this configuration of xserver , so i think the 2 topics are different, what do you think ??
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15214
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, what Ernest is talking about here is the same kind of thing as what we were talking about in the other topic with Xming.

Have you made any progress yet with the problem?
 
Sherif Shehab
Ranch Hand
Posts: 485
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jesper Young:
Well, what Ernest is talking about here is the same kind of thing as what we were talking about in the other topic with Xming.

Have you made any progress yet with the problem?


Actually , i tired all these steps on another unix sever and was succeeded and i can see the clock , but on the desired server still the same problem exists so i informed out Unix admin to see what's wrong in this server ,and waiting for his feedback...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic