New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug with breakpoint in java.util.Properties causes 'Timeout while trying to contact RemoteTestNG' #155
Comments
OK, it's gonna be interesting now. after digging into the code, it turned out that break point at
if put the break point at
the whole stack trace showing RemoteTestNG is still initializing, the socket not yet listen and it's paused by the break point, while so it's OK as long as you don't add break point at the code that used by RemoteTestNG initilization, for example, below case is OK:
add break point at though the root cause is quite clear, I have no good idea to fix this at the moment. |
Fascinating :-) I wonder if there's a way to launch processes from an Eclipse plug-in while Cédric On Sun, Jun 14, 2015 at 8:10 AM, Nick Tan notifications@github.com wrote:
|
As a workaround, I've been doing this: suspend all breakpoints except for one at the first line of the first test method to run. Launch the eclipse debug. When the breakpoint triggers, enable the remaining breakpoints. Not a solution, but a reasonable workaround until a fix becomes available. |
hi guys, new testng eclipse plugin build 6.9.5.201508210528 was just out, could you update to this version and verify if this issue resolved, thanks |
this issue should be fixed in PR #166, let's close it |
I'll let you close it yourself now that you can :) |
I have a simple testng test which uses
java.util.Properties
.I have set a breakpoint in the JDK source for
java.util.Properties
, start debug, breakpoint is triggered, but then the 'Timeout while trying to contact RemoteTestNG' modal below is shown and on pressing OK, nothing further happens.Debug output is:
Stack at this point shows:
Debugging with a breakpoint in my own source code rather than the JDK source works as expected, it only seems to be a problem when the breakpoint is in JDK source.
I'm using Luna Service Release 2 (4.4.2) Build id: 20150219-0600 with the testng plugin version 6.9.5.201506120235. My project has a maven dependency on testng 6.9.4. JDK version 1.8.0_45.
I tried unchecking use project testng jar as suggested by the modal but this did not fix the problem.
There is some related history on #148 with comments from @cbeust:
and @missedone:
The text was updated successfully, but these errors were encountered: