Re: Can't debug on OS X
Probably been mentioned before, but I have to ask.
Hi Zac,
>I'm using Netbeans 3.3.2 and just want to debug a simple piece of code, but
>I can't.
>The problem is when select the app and select debug I get the following in
>the debug window:
/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/bin/java
-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=Zac:49446,suspend=y
^^^^
>[..]
>Error [2] in gethostbyname() call!
It seems to me like incorrect setting of your computer name. NetBeans thinks
that the name is 'Zac', but according to the later messages gethostbyname() for
'Zac' failed. Before debugging in NetBeans make sure that
/sbin/ping Zac
works correctly.
Hope it helps.
Bye,
--
Tomas Hurka<mailto:tomas.hurka@sun.com>
Software Engineer, Forte Tools
Sun Microsystems, Praha Czech Republic
# 1
On 7/29/02 4:21 AM, in article netbeans.nbusers/3D44FB1A.BD0E283C@sun.com,
"Tomas Hurka" <tomas.hurka@sun.com> wrote:
> Probably been mentioned before, but I have to ask.
> Hi Zac,
>
>> I'm using Netbeans 3.3.2 and just want to debug a simple piece of code, but
>> I can't.
>
>> The problem is when select the app and select debug I get the following in
>> the debug window:
>
> /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/bin/java
> -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=Zac:49446,suspend=y
Just hit this problem this weekend. Zac like myself probably set his
hostname down in /etc/hostconfig, then like normal OS X, put and entry into
NetInfo and hardcoded an IP address for his computer. Now take that computer
off the network, I am on vacation at the moment, and try to debug. The
debugger trys to reach 10.0.1.205 but cant because there is not router
available so it fails with a no route to host. Temporarily I changed the
netinfo entry for my hostname from 10.0.1.205 to 127.0.0.1 and now the
debugger worked. Zac, maybe you are having the same problem.
>^^^^
>> [..]
>> Error [2] in gethostbyname() call!
> It seems to me like incorrect setting of your computer name. NetBeans thinks
> that the name is 'Zac', but according to the later messages gethostbyname()
> for
> 'Zac' failed. Before debugging in NetBeans make sure that
> /sbin/ping Zac
> works correctly.
>
> Hope it helps.
>
> Bye,