Run TestNG xml suites in debug mode #313
-
Hello, I'm looking for a way to run TestNG xml suites in debug mode. Now I know how to just run TestNG xml suites by specifying jar package:
I also found parameter that allows to debug it remotely: I guess next step is attaching. How can I attach to debug session from Neovim? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You need to create an attach configuration: local dap = require('dap')
dap.configurations.java = {
{
type = 'java';
request = 'attach';
name = "Debug (Attach) - Remote";
hostName = "127.0.0.1";
port = 1044;
},
} The If you're using a multi-module project you'll also have to add a You might want to change If you follow the vscode-java-test setup instructions (https://github.com/mfussenegger/nvim-jdtls#vscode-java-test-installation) you should also be able to use: |
Beta Was this translation helpful? Give feedback.
You need to create an attach configuration:
The
port
must match whatever you're using inaddress=1044
See https://github.com/mfussenegger/nvim-dap/wiki/Java#configuration
If you're using a multi-module project you'll also have to add a
projectName = '<yourproject>'
property.You might want to change
suspend=n
tosuspend=y
to ensure it waits for a debugger to attach before running.If you follow the vscode-java-test setup instructions (https://github.com/mfussenegger/nvim-jdtls#vscode-java-test-instal…