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

Remote debug hanging #7

Open
FDelporte opened this issue Nov 15, 2021 · 2 comments
Open

Remote debug hanging #7

FDelporte opened this issue Nov 15, 2021 · 2 comments
Assignees

Comments

@FDelporte
Copy link
Member

Trying to follow the README to do remote debugging.

mvn install= OK
mvn antrun:run@exec= OK

mvn antrun:run@debug = stops on `Listening'

[INFO] 
[INFO] ------------------------< com.geekhelp:pitest2 >------------------------
[INFO] Building Raspi Project 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-antrun-plugin:3.0.0:run (debug) @ pitest2 ---
[INFO] Executing tasks
[INFO] [sshsession] Connecting to 192.168.0.106:22
[INFO]   [sshexec] Connecting to 192.168.0.106:22
[INFO]   [sshexec] cmd : cd '/home/pi/IdeaProjects/pitest2'; sudo '/usr/lib/jvm/default-java/bin/java'  -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=192.168.0.106:1955 -Dfile.encoding=UTF-8  -p /home/pi/IdeaProjects/pitest2/dist/lib -m com.geekhelp.pitest2/com.geekhelp.Main 
Listening for transport dt_socket at address: 1955

Any idea what could be wrong or what can be checked?

@Acasmol
Copy link

Acasmol commented Dec 24, 2022

Have the same issue, but run the mvn goal directly on console, and got this:

image

The default por for debug is 1955, which should be enabled on Raspberry Pi, but not shure how to do that.

@Acasmol
Copy link

Acasmol commented Dec 25, 2022

I got a solution
On raspberry pi I used
"sudo ufw allow 1955"

Then, on a separate console (I use Git bash) on my local machine I run "mvm antrun:run@debug" and you should get what you are getting, then, on eclipse, set up a debug configuration as "debug java remote app", and put the ip addres of my raspberry pi and the port 1955, and go on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants