VSCode Test Debugging
This doesn't work unless I add:
When I run without, I see that a process starts but it does nothing. How do I run all tests with a debugger? I just want to set a breakpoint and press run. I don't want to have to edit the config to test 1 specific file.
2 Replies
The documentation provides information on how to use the debugger with Deno in Visual Studio Code. According to the documentation, you can generate a configuration by going to the
Run and Debug
panel, clicking create a launch.json file
and selecting Deno
option from the available debugger options.
However, the documentation does not provide a clear answer on how to run all tests with a debugger without specifying a specific file in the program
field of the configuration.
As a general advice (which is not explicitly stated in the documentation), you might want to try using a wildcard (*
) in the program
field to include all test files in a certain directory, like so:
This should theoretically run all test files in the src
directory and its subdirectories. However, please note that this advice is not explicitly supported by the documentation and might not work as expected.
If you continue to experience issues, it might be helpful to debug the issue further by checking the output logs or asking for help in the Deno community. 🦕Enable the setting
deno.codeLens.test
and a "Debug" option should appear right above the tests in your code