diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-19 22:47:37 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-19 22:47:37 -0400 |
| commit | b0168bef1eedbe75ffab364a02a0c1ba8466dbd1 (patch) | |
| tree | 2e6e55f4ee80001dc5c856b3a416c89c5da712d0 /doc/cmd.rst | |
| parent | badfb167150938ad5e1f28920e5846ffe1e10e23 (diff) | |
| download | python-coveragepy-git-b0168bef1eedbe75ffab364a02a0c1ba8466dbd1.tar.gz | |
Added more debugging controls, especially for data operations
Diffstat (limited to 'doc/cmd.rst')
| -rw-r--r-- | doc/cmd.rst | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/doc/cmd.rst b/doc/cmd.rst index a438eb33..83acb888 100644 --- a/doc/cmd.rst +++ b/doc/cmd.rst @@ -417,22 +417,30 @@ and ``data`` to show a summary of the collected coverage data. The ``--debug`` option is available on all commands. It instructs coverage.py to log internal details of its operation, to help with diagnosing problems. It takes a comma-separated list of options, each indicating a facet of operation -to log to stderr: +to log: -* ``trace``: print every decision about whether to trace a file or not. For - files not being traced, the reason is also given. +* ``callers``: annotate each debug message with a stack trace of the callers + to that point. * ``config``: before starting, dump all the :ref:`configuration <config>` values. -* ``sys``: before starting, dump all the system and environment information, - as with :ref:`coverage debug sys <cmd_debug>`. - * ``dataio``: log when reading or writing any data file. +* ``dataop``: log when data is added to the CoverageData object. + * ``pid``: annotate all debug output with the process id. * ``plugin``: print information about plugin operations. +* ``sys``: before starting, dump all the system and environment information, + as with :ref:`coverage debug sys <cmd_debug>`. + +* ``trace``: print every decision about whether to trace a file or not. For + files not being traced, the reason is also given. + Debug options can also be set with the ``COVERAGE_DEBUG`` environment variable, a comma-separated list of these options. + +The debug output goes to stderr, unless the ``COVERAGE_DEBUG_FILE`` environment +variable names a different file, which will be appended to. |
