[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-debug-dev] problems with remote debugging on Windows Vista
|
Hi,
sorry for the fake alarm - something strage had to happen with network interfaces (was running before wireshark and winpcap) - after system restart all is fine. Probably Vista issue.
best regards,
Michal
On 9/14/07, Jeff Turnham <turnham@xxxxxxxxxx> wrote:
Hi,
I don't have a Vista system to test
on, and I'm not sure why you're getting the error. But if you're on java
1.6, then you should be using the jvmti agent method of invocation. So
this means you don't need the -Xdebug option (that option is used to enable
JVMDI which is deprecated). Also I seem to remember explicitly having
"localhost" in the address field helping, so I would suggest
trying the following invocation:
java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=localhost:8787
Main
By the way, you could have also got
this info by looking at the way Eclipse itself launches local java apps
for debugging . So if you're on Eclipse 3.3 with at least java 1.5
and you debug a java app in your workspace, you can goto the Debug View
and right click on the debug target and choose "Properties".
From the Properties dialog you can see the command-line used to invoke
the app.
Thanks...
---------------------------------------------------------------------
Jeff Turnham
IBM
---------------------------------------------------------------------
Hi,
I've strange problem while trying to explore remote debugging
capabilities. I wrote simple application with unfinite loop just for
testing purposes, run Main class from console:
java -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n
Main
and trying to get into it with Eclipse debugger. Setup of Eclipse
seems to be straightforward - I put localhost + port number, however I
get error message:
Failed to connect to remote VM. Connection refused.
Connection refused: connect
Strange is that I'm able to connect with jdb tool:
jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=8787
More information: I'm able to connect with jdb only in case I didn't
try to connect with Eclipse before. Otherwise I get also connection
error. If I don't try to connect with Eclipse, I can connect with jdb
as many times as I want. Once I try with Eclipse, jdb no longer can do
it (however application is still up).
As you can see firewall is not an issue, however so be sure I disabled
it.
Environment details:
- Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode, sharing)
- Eclipse Version: 3.3.0, Build id: I20070621-1340
- Windows Vista 32 bit - I don't have other OS so cannot reproduce it
in other environment
Is it a bug or I'm doing something fundamentally wrong?
--
with best regards / z pozdrowieniami
Michal Slocinski
michal.slocinski@xxxxxxxxx
_______________________________________________
platform-debug-dev mailing list
platform-debug-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-debug-dev
_______________________________________________
platform-debug-dev mailing list
platform-debug-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-debug-dev
--
with best regards / z pozdrowieniami
Michal Slocinski
michal.slocinski@xxxxxxxxx