Debug package test with VSCode

Hello - I’m currently trying to use the debugger in the context of a package’s tests. Specifically, I would like to hit a breakpoint that I have placed in one of the source files in the module.

Currently I haven’t been able to get this to work. I have tried:

  1. ] test in the REPL
  2. “Run & debug” on runtests.jl
  3. Alt-Enter on runtests.jl
  4. @run include("test/runtests.jl") at the REPL

It makes sense that 1 & 3 don’t work, since I’m not providing any indication that I want the debugger to start. Naively it seems to me that 2 & 4 “ought” to work, but obviously I am missing something :slight_smile:

Does somebody know the correct incantation to get this to work please? Thanks!