简体   繁体   中英

How do I debug a maven project through UNIX mac terminal?

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.

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM