Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use inspector with test runner #12584

Closed
Soremwar opened this issue Oct 28, 2021 · 7 comments · Fixed by #13065
Closed

Can't use inspector with test runner #12584

Soremwar opened this issue Oct 28, 2021 · 7 comments · Fixed by #13065
Assignees
Labels
bug Something isn't working correctly cli related to cli/ dir

Comments

@Soremwar
Copy link
Contributor

Using the following launch.json I am unable to debug any kind of tests, even if I put a breakpoint outside a Deno.test block.

{
  "version": "0.2.0",
  "configurations": [
    {
      "request": "launch",
      "name": "Debug",
      "type": "pwa-node",
      "program": "${file}",
      "cwd": "${workspaceFolder}",
      "runtimeExecutable": "deno",
      "runtimeArgs": [
        "test",
        "--allow-all",
        "--inspect-brk"
      ],
      "attachSimplePort": 9229
    }
  ]
}

Using simply the command deno test --inspect-brk --allow-all main.ts will run the tests normally, but won't wait for any inspector to connect before exiting, as it would happen using deno run.

@bartlomieju bartlomieju added the bug Something isn't working correctly label Oct 29, 2021
@bartlomieju bartlomieju self-assigned this Oct 29, 2021
@Industrial
Copy link
Contributor

I would really like having debugger support for tests. I'm doing test driven development so running tests is currently the only way I am running the implementation code.

@lucacasonato lucacasonato added the cli related to cli/ dir label Nov 3, 2021
@rracariu
Copy link

rracariu commented Nov 4, 2021

This is a regression with latest Deno. In 1.12.2 this worked.

@kitsonk
Copy link
Contributor

kitsonk commented Nov 15, 2021

Related #12417

@fungiboletus
Copy link

The first release where it doesn't work (on my machine) is the 1.14.1. 1.14.0 works.

@jeiea
Copy link
Contributor

jeiea commented Dec 7, 2021

It is still reproducible with deno 1.16.4 (release, x86_64-pc-windows-msvc).

@jespertheend
Copy link
Contributor

This seems to have regressed in e1144fd

@david-rse
Copy link

Having the same issue; deno test --inspect-brk ... doesn't break for listener.

deno --version
deno 1.37.2 (release, x86_64-unknown-linux-gnu)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly cli related to cli/ dir
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants