Skip to content

Treat mapped files as my code #561

@mforkel

Description

@mforkel

I would like to suggest that files in or below a directory included in the path mappings of a launch configuration should always be considered my code. Or, in order not to deviate from current behavior, there could be a setting to declare them my code, e.g. mappedMyCode.

Rationale: The user will likely specify path mappings only for his/her own code and expect to use breakpoints in those files. Evaluating path mapping is more specific than setting justMyCode to true, which adds many (library) files. Specifying paths to own code both in mappings and in include rules (once available) is inefficient and error prone.

In my case, I wanted to debug proprietary Python code that was distributed and installed as a regular Debian package, i.e. below /usr/lib/python*/dist-packages. It took me a while to figure out that this directory is on pydevd's LIBRARY_PATHS and that I would have to set justMyCode to false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions