Skip to content
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

Arm7 Remote Debug #1264

Closed
james10174 opened this issue May 15, 2016 · 9 comments
Closed

Arm7 Remote Debug #1264

james10174 opened this issue May 15, 2016 · 9 comments
Labels
kind/bug Outline of a bug - must adhere to the bug report template.

Comments

@james10174
Copy link

james10174 commented May 15, 2016

Not sure if I got all the debug setting right but it's not stopping at the markers. Trying a simple console java helloworld. The debugger attaches to host it seems.

java -jar -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y ${current.project.path}/target/*.jar
image

image

pom file.


4.0.0
org.eclipse.che.examples
console-java-simple
jar
1.0-SNAPSHOT
hello-app
http://maven.apache.org


junit
junit
3.8.1
test





org.apache.maven.plugins
maven-compiler-plugin
2.4

true
source



org.apache.maven.plugins
maven-jar-plugin
2.4



true
lib/
org.eclipse.che.examples.HelloWorld






@ghost
Copy link

ghost commented May 16, 2016

@james10174 Can you try adding a threadsleep of 1-2 seconds before printing Hello World in your class? We do have have such an issue with a remote debug - the java gets executed quicker than the debugger manages to get breakpoints. It's a known issue and it will be fixed.

@ghost ghost added the kind/bug Outline of a bug - must adhere to the bug report template. label May 16, 2016
@james10174
Copy link
Author

james10174 commented May 16, 2016

@eivantsov Didn't work.

image

I also put the following into the terminal and re-ran without success.

echo "set remotetimeout 10" > ~/.gdbinit

image

@ghost
Copy link

ghost commented May 17, 2016

@james10174 I was able to reproduce it on my side with Java debugger. Investigating.

This is a known issue (current master). What version do you have?

@james10174
Copy link
Author

james10174 commented May 17, 2016

@eivantsov I use the java debugger, jdk1.8.0_91 (container and host) and eclipse-che-4.3.0-RC1-SNAPSHOT.

@ghost
Copy link

ghost commented May 17, 2016

If you use 4.2.2 there's no such an issue there. It's being fixed in master so if you grab the latest nightly in a couple of days, it should be ok.

@james10174
Copy link
Author

@eivantsov I will wait for the new nightly. Just let me know when it's ready. Thanks.

@james10174
Copy link
Author

@eivantsov Any progress on this issue?

@ghost
Copy link

ghost commented May 26, 2016

@james10174 worked for me with the latest master. Give ti a shot with a nightly build

@james10174
Copy link
Author

@eivantsov It works. Good job :)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

No branches or pull requests

1 participant