Replies: 3 comments 1 reply
|
Hi @oscarvarto 👋 I saw your question and wanted to share how to configure Dape to debug TestNG tests with Java. The main issue seems to be that the Java process isn't listening for debugger connections on the specified port (e.g., localhost:5005). ✅ Step-by-step solution
suspend=y: makes Java wait until the debugger connects before starting address=5005: Java will listen on this port for the debugger Make sure this command is run before attaching Dape.
🧪 Test the setup 2 Open Dape and select your "Debug TestNG" configuration 3 SStart debugging — it should now connect to the Java process successfully ℹ️ Notes You can change the port in both the Java command and Dape config if needed The suspend=y flag is helpful to ensure the debugger attaches before the test starts Let me know if you’d like a full example with testng.xml and Dape config — happy to help further! Hope this works for you 🙌 |
|
I tried again, but failed. Sorry, I am giving up. |
|
Never givup! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Could you please help me figure out how to configure a Dape template to debug Java TestNG tests?
You could find my current progress here:
https://gist.github.com/oscarvarto/d9cb5aa7e6d1ed3df729760d22d15779
I couldn't connect the DAP debugger (no matter what I tried). I got a message like:
host' andport' keys *Please, help!!
All reactions