Reputation: 73
Seems like jdb doesn't work with maven. Everything I look up online is talking about debugging maven through Eclipse or IntelliJ. I'm literally just making this project through UNIX with maven. Normally I could debug using println or something but this is my first multi-threaded project and I have no idea where to start. Just want to step through the program line by line.
Upvotes: 0
Views: 270
Reputation: 73
It sounds like you want to use mvnDebug
to execute instead of just mvn
, this will run in remote debugging mode. Then connect to the port from another terminal window while the program is running with jdb jdb -attach 8000
(this is the default port, it should print in the console what it's actually using)
Upvotes: 1