Open GoogleCodeExporter opened 9 years ago
I think the current code always connect to localhost (the "host" input parameter
isn't used as far as I know), so you may try hotswap on a local JVM
Original comment by endermoo...@gmail.com
on 20 Nov 2009 at 11:52
I'd the same problem, and check your java launch options:
-Xdebug -Xrunjdwp:transport=dt_socket,address=9000,server=y,suspend=n
For example, in eclipse debug, it's launched like -Xdebug
-Xrunjdwp:transport=dt_socket,address=9000,server=n,suspend=y
You need server=y, for do hotswap.
Original comment by pablo.pa...@gmail.com
on 26 Nov 2009 at 10:09
Hotswap does not close its debugger connection, so in Eclipse, after your 1st
hotswap works, your 2nd will not - unless the containing Ant process ends.
I fixed this by changing my Ant task to run under an Execution Environment
instead of "same JRE as the workspace". Once the hotswap is done, the hotswap
process dies and the client socket is closed, allowing the server socket to
accept a new debug connection.
Original comment by glen.a.l...@gmail.com
on 31 Aug 2011 at 6:54
The last problem reported is resolved adding the next code in HotSwapHelper
class:
public void disconnect() throws Exception {
// close the communication channel to the target VM
vm.dispose();
}
Original comment by Joaquin....@gmail.com
on 14 Mar 2012 at 3:47
[deleted comment]
The problem reported in Comment 1 ("the current code always connect to
localhost") is solved by next steps:
(1) edit HotSwapHelper class and method:
private void connect(String host, String port, String name)
(2) search the next lines:
arg = (Connector.Argument)args.get("port");
arg.setValue(port);
(3) before these lines, put:
arg = (Connector.Argument)args.get("hostname");
arg.setValue(host);
Original comment by Joaquin....@gmail.com
on 14 Mar 2012 at 4:11
[deleted comment]
SSH -L <port>:<youhost>:<port> user@remoutehost
after this command try connect to localhost
must help.
Original comment by sergeyse...@gmail.com
on 1 Feb 2015 at 1:46
Original issue reported on code.google.com by
roge...@gmail.com
on 9 Apr 2009 at 5:05