Skip to content

Commit 79d97ee

Browse files
committed
investigate debugging of tests #239
1 parent 9bdb4f0 commit 79d97ee

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/client/debugger/DebugClients/LocalDebugClient.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,5 +147,8 @@ export class LocalDebugClient extends DebugClient {
147147

148148
let programArgs = Array.isArray(this.args.args) && this.args.args.length > 0 ? this.args.args : [];
149149
return [vsDebugOptions, this.args.program].concat(programArgs);
150+
// Use this ability to debug unit tests or modules
151+
// Adding breakpoints programatically to the first executable line of the test program
152+
// return [vsDebugOptions, '-c', "import pytest;pytest.main(['/Users/donjayamanne/Desktop/Development/Python/Temp/MyEnvs/tests/test_another.py::Test_CheckMyApp::test_complex_check'])"].concat(programArgs);
150153
}
151154
}

0 commit comments

Comments
 (0)