An implementation of the Debug Adapter Protocol for Python https://pypi.org/project/debugpy/
Find a file
Eric Snow 7ca01fb2de
Clean up handling of vendored projects. (#383)
* Clean up handling of vendored projects.

* Add the ptvsd._vendored package.

* Try the new location and fall back to the old one.

* Fix a typo.

* Add ptvsd._vendored.list_all().

* Fix setup.py and tests/__main__.py.

* Exclude .pyc files (from python 2).

* Deal with implicit relative imports in 2.7.
2018-04-19 18:20:06 -06:00
debugger_protocol Support for log points (#352) 2018-04-17 16:22:01 -07:00
ptvsd Clean up handling of vendored projects. (#383) 2018-04-19 18:20:06 -06:00
tests Clean up handling of vendored projects. (#383) 2018-04-19 18:20:06 -06:00
win Remove Python 3.5 package 2018-03-28 20:42:56 -07:00
.gitattributes Set up versioneer to auto-generate version numbers from git. 2018-04-11 14:00:48 -07:00
.gitignore Partial fix to exception notification issue in VS 2018-01-23 12:00:04 -08:00
.travis.yml Disable the schema check. 2018-03-22 05:29:59 +00:00
DESCRIPTION.md Add package information. 2018-03-28 15:18:43 -07:00
LICENSE Updates LICENSE file with correct text and includes it in distributions 2018-02-21 16:10:22 -08:00
Makefile Run tests verbosely. 2018-04-02 17:53:47 +00:00
MANIFEST.in Set up versioneer to auto-generate version numbers from git. 2018-04-11 14:00:48 -07:00
README.md Rename flag to make it more meaningful (#326) 2018-04-09 15:54:08 -07:00
setup.cfg Set up versioneer to auto-generate version numbers from git. 2018-04-11 14:00:48 -07:00
setup.py Clean up handling of vendored projects. (#383) 2018-04-19 18:20:06 -06:00
versioneer.py Disable 'dirty' flag for version numbers. 2018-04-19 16:45:20 -07:00

Python Tools for Visual Studio debug server

Build Status

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Custom Protocol arguments

1. Launch request arguments

{
    "debugOptions":  [
            "RedirectOutput",       // Whether to redirect stdout and stderr (see pydevd_comm.CMD_REDIRECT_OUTPUT)
            "WaitOnNormalExit",     // See WAIT_ON_NORMAL_EXIT in wrapper.py
            "WaitOnAbnormalExit",   // See WAIT_ON_ABNORMAL_EXIT in wrapper.py
            "Django",               // Enables Django Template debugging
            "Jinja",                // Enables Jinja (Flask) Template debugging
            "FixFilePathCase",      // See FIX_FILE_PATH_CASE in wrapper.py
            "DebugStdLib"           // Whether to enable debugging of standard library functions
    ]
}

2. Attach request arguments

{
    "debugOptions":  [
            "RedirectOutput",       // Whether to redirect stdout and stderr (see pydevd_comm.CMD_REDIRECT_OUTPUT)
            "WaitOnNormalExit",     // See WAIT_ON_NORMAL_EXIT in wrapper.py
            "WaitOnAbnormalExit",   // See WAIT_ON_ABNORMAL_EXIT in wrapper.py
            "Django",               // Enables Django Template debugging
            "Jinja",                // Enables Jinja (Flask) Template debugging
            "FixFilePathCase",      // See FIX_FILE_PATH_CASE in wrapper.py
            "DebugStdLib"           // Whether to enable debugging of standard library functions
            "WindowsClient"         // Whether client OS is Windows or not
    ],
    "pathMappings": [
        {
            "localRoot": "C:\\Project\\src",   // Local root  (where source and debugger running)
            "remoteRoot": "/home/smith/proj"   // Remote root (where remote code is running)
        },
        // Add more path mappings
    ]
}