# Debug package test with VSCode

**URL:** https://discourse.julialang.org/t/debug-package-test-with-vscode/57758
**Category:** VS Code
**Tags:** testing, workflow
**Created:** [March 22, 2021, 11:18pm UTC](https://discourse.julialang.org/t/debug-package-test-with-vscode/57758 "2021-03-22T23:18:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tpgillam](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tpgillam/32/23052_2.png) [@tpgillam](https://discourse.julialang.org/u/tpgillam)
#### Post date: [March 22, 2021, 11:18pm UTC](https://discourse.julialang.org/t/debug-package-test-with-vscode/57758/1 "2021-03-22T23:18:44Z")

</div>

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 🙂

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