Skip to content

Create persistent custom commands #908

@infinitesteps

Description

@infinitesteps

I would like to use my own debug commands in the VSCode Debug Console. PDB has the option to create aliases and store them in ~/.pdbrc for all debug sessions. Does debugpy have anything like this? If not, could it be added?

For a concrete example of something I am trying to do: I would like a function foo to be available in all my debug sessions that does the following:

def foo(o): # shows all non-internal methods for an object
    for m in dir(o):
        if m[0] != '_':
            print(m)

I can define this function in the console itself but I would like to place it (and possibly many others) in a debugger configuration file somewhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions