Skip to content

Support post_mortem debugging #722

@TauPan

Description

@TauPan

Since pytest supports the --pdb and --pdbcls switches to launch a debugger if a test assertion fails:

  --pdb                 start the interactive Python debugger on errors or
                        KeyboardInterrupt.
  --pdbcls=modulename:classname
                        start a custom interactive Python debugger on errors.
                        For example:
                        --pdbcls=IPython.terminal.debugger:TerminalPdb

it could be useful (at least to me) if debugpy could support this. See emacs-lsp/dap-mode#506

I may be wrong but it looks like debugpy (and vscode) do not support this yet.

Adding this directly in debugpy could be easier than grafting it onto a pytest plugin, as I proposed in emacs-lsp/dap-mode#506

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions