-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Description
The section Debug tests:
https://code.visualstudio.com/docs/python/testing#_debug-tests
It starts with "Because tests themselves are source code, they are prone to code defects just like the production code they test. For this reason, you may occasionally need to step through and analyze tests in the debugger.".
I think this mis-states why someone might want to debug a test. Almost all of the time I want to debug a test it's because my own code is raising an unhandled exception. That is, I'm using the debugger because the test is failing and I want to fix my code, not because I want to "step through and analyze tests in the debugger".
I would propose an opening covers both use cases: debugging the test or debugging the actual program. And does not imply debugging the test is the main reason to use a debugger. Not sure of exact wording I will try to think of something.