Skip to content

Run TestNG xml suites in debug mode #313

Answered by mfussenegger
anjerukare asked this question in Q&A
Discussion options

You must be logged in to vote

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 port must match whatever you're using in address=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 to suspend=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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by anjerukare
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants