Debug: drop into pdb on errors or failures

This plugin provides --pdb and --pdb-failures options. The --pdb option will drop the test runner into pdb when it encounters an error. To drop into pdb on failure, use --pdb-failures.

Options

--pdb

Drop into debugger on failures or errors

--pdb-failures

Drop into debugger on failures

--pdb-errors

Drop into debugger on errors

Plugin

class nose.plugins.debug.Pdb

Bases: nose.plugins.base.Plugin

Provides –pdb and –pdb-failures options that cause the test runner to drop into pdb if it encounters an error or failure, respectively.

addError(test, err)

Enter pdb if configured to debug errors.

addFailure(test, err)

Enter pdb if configured to debug failures.

configure(options, conf)

Configure which kinds of exceptions trigger plugin.

options(parser, env)

Register commandline options.

Source

Table Of Contents

Previous topic

Cover: code coverage

Next topic

Deprecated: mark tests as deprecated

This Page