#Debugging tests

2 messages · Page 1 of 1 (latest)

warm topaz
#

Hi I use VS Code and use the VS Code Deno extension with the very good test code lens. I was wondering if it was possible to use the test code lens with debugger activated. So, in my settings.json, I tried to enter :

    "deno.codeLens.testArgs": [
        "--allow-all",
        "--no-check",
        "--unstable",
        "--inspect-brk"
    ],

But nothing happens. When I look in the language server output, it says "Executing test run with arguments: deno test --allow-all --no-check"

In fact, whatever I write in my settings does not seem to impact the arguments sent to the deno test CLI.

Am I missing tsomething?

opal tangle
#

Follow this:

  1. Use --inspect-wait instead of --inspect-brk
  2. Enable deno.codeLens.test
  3. To debug your test, click on Debug right above your test: