Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GUI Debugger 1

Status
Not open for further replies.

thaj

Programmer
May 13, 2002
12
AP
When i invoke WDB debugger(HP box), i am getting the following error. Actually, it is a remote server that i am trying to access for debugging.
The error is as follows:

" Error: Can't open display:"

Regards,
Thaj
 
Do you have the [tt]DISPLAY[/tt] environment variable defined? On the system you are running the debugger on, you need to define where you want the display to pop up. Something like...
Code:
DISPLAY=10.20.30.40:0.0 ; export DISPLAY
command_to_run_debugger &
Give that a try.
 
Hi Sam,
Though i set display, both ip addresses(local pc as well remote pc ip), I am getting the following error. But, i am sure wdb is installed in our server.(gdb works fine, but not WDB).

" Error: Can't open display: 172.18.79.7:0.0 "

Regards,
Thaj.

 
Which system did you set the DISPLAY variable on (the remote?)
Which display did you set it to use (the local one?)

If you set the DISPLAY on the remote to point to the local display, can you run any GUI application at all, say an editor of some sort?

If nothing works, then this is a network permissions problem, not a C question.

--
 
Hi Salem,

Answering to your question.

1.Which system did you set the DISPLAY variable on (the remote?)
I am connecting a remote system(windows) using remote desktop connection. It has its own ip address. This system is dedicated to me only in onsite. Here, using putty i am connecting to HP unix. Here, Virtually, i am working as if i am in onsite.

2.Which display did you set it to use (the local one?)
This is my local ip address(windows)
I tried setting both DISPLAY's and ran WDB, It said the same error.

Regarding networks permission, i need to check up with the administrator.

Regards,
Thaj



 
Could be wrong, but I don't think you can set the display of a Unix to a Windows without another piece of software.

What you need is a program that let you run a linux x client from windows.

Cheers,
Dian
 
Type this on the remote machine

xhost +
 
Hi mingis,

I installed exceed'97 evaluation version. And tried with onsite ip address. Still i am getting the following error.
error as follows
"(152)==> wdb
Error: Can't open display: 10.49.237.153:0.0
 
What do you mean saying "I am connecting a remote system(windows) using remote desktop connection". Is there some third Windows workstation inbetween? Don't you connect HPUX directly from your local PC? If so, install Exceed on that remote PC, not on your local one and set DISPLAY in HPUX to IP of that remote PC.
 
Mingis,

Yes, It is third windows workstation in between. I am not connecting HP directly from my local PC. I installed Exceed on remote PC only and set the DISPLAY in HP with the ip of remote PC.

But, All in vain, i am getting the above mentioned error.
 
Can you ping from HPUX to that remote PC? Do remote PC and HPUX belong to the same LAN segment? Are there probably some routers-firewalls between HPUX and remote PC, blocking X-terminal messages? No idea about Exceed or HPUX configuration - it was so many time ago.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top