nvim-dap-python
nvim-dap-python copied to clipboard
debugging pytest with playwright subprocess fails
hi all, i have a big complex test suite based on pytest that launches a browser and orchestrates it with playwright currently my settings for nvim-dap are:
{
runner = 'pytest',
python = '/Users/orenherman/.virtualenvs/debugpy/bin/python',
dap = {
python = { '-Xfrozen_modules=off', '--multiprocess', '--qt-support=auto' },
console = 'integratedTerminal',
justMyCode = false,
stopOnEntry = true,
subProcess = true,
},
}
i can set breakpoints in the different entry points and it'll catch them, but once set inside the subprocess that orchestrates the browser (the actual test) - it will skip those and disconnect the debugger.
i know this must be a debugpy issue (although i do manage to debut the subprocesses in vscode) but i wonder if i can get some guidance please?
** worth noting, that debugging with subProcess = false or just running the test works just fine
ill try and post a small repo with playwright and pytest to reproduce