Skip to content

Feature Request: Debugging python tests should make use of the "nice" console (not the debug console) and should make use of the session in the side bar. #11073

@travis-leith

Description

@travis-leith

Originally started as a discussion, subsequently advised to open an issue.

When debugging a test, I would like to use all the nice things I like about positron. Specifically, I would like to use the nice console instead of the debug console that comes with vanilla vscode. I would also like my variables and objects etc to be populated in the session screen.
Essentially I want the nice interactive experience when running tests.
As far as I know, the only way I can achieve this right now is to put together a specific debugging script that does all the stuff (importing packages, instantiating fixtures etc) leading up to the test code.
It would be much nicer to be able to right click on a test and debug it, then have it break at some location I set, and have all the nice interactive positron capabilities available to me.

I don't mind if the code "pauses" at the breakpoint/exception, or if positron simply converts the state at that point into an active python session. Either would be super convenient.

This issue seems to have a little overlap with #5659

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions