File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,13 @@ Debuggers and PyCharm
7
7
When it comes to TDD one obviously would like to debug tests. Debuggers in Python use mostly the sys.settrace function
8
8
to gain access to context. Coverage uses the same technique to get access to the lines executed. Coverage does not play
9
9
well with other tracers simultaneously running. This manifests itself in behaviour that PyCharm might not hit a
10
- breakpoint no matter what the user does. Since it is common practice to have coverage configuration in the pytest.ini
10
+ breakpoint no matter what the user does, or encountering an error like this::
11
+
12
+ PYDEV DEBUGGER WARNING:
13
+ sys.settrace() should not be used when the debugger is being used.
14
+ This may cause the debugger to stop working correctly.
15
+
16
+ Since it is common practice to have coverage configuration in the pytest.ini
11
17
file and pytest does not support removeopts or similar the `--no-cov ` flag can disable coverage completely.
12
18
13
19
At the reporting part a warning message will show on screen::
You can’t perform that action at this time.
0 commit comments