Extensions allow extending the debugger without modifying the debugger code. This is implemented with explicit namespace
packages.
To implement your own extension:
1. Ensure that the root folder of your extension is in sys.path (add it to PYTHONPATH)
2. Ensure that your module follows the directory structure below
3. The ``__init__.py`` files inside the pydevd_plugin and extension folder must contain the preamble below,
and nothing else.
Preamble:
```python
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)
```
4. Your plugin name inside the extensions folder must start with `"pydevd_plugin"`
5. Implement one or more of the abstract base classes defined in `_pydevd_bundle.pydevd_extension_api`. This can be done
by either inheriting from them or registering with the abstract base class.
* Directory structure:
```
|-- root_directory-> must be on python path
| |-- pydevd_plugins
| | |-- __init__.py -> must contain preamble
| | |-- extensions
| | | |-- __init__.py -> must contain preamble
| | | |-- pydevd_plugin_plugin_name.py
```
没有合适的资源?快使用搜索试试~ 我知道了~
PyPI 官网下载 | ptvsd-4.0.0a4.zip
共222个文件
py:184个
txt:6个
h:5个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 163 浏览量
2022-02-13
16:09:35
上传
评论
收藏 1.2MB ZIP 举报
温馨提示
资源来自pypi官网。 资源全名:ptvsd-4.0.0a4.zip
资源推荐
资源详情
资源评论
收起资源包目录
PyPI 官网下载 | ptvsd-4.0.0a4.zip (222个子文件)
compile_dll.bat 406B
pydevd_cython.c 1.42MB
pydevd_frame_evaluator.c 291KB
attach_linux.c 11KB
setup.cfg 109B
attach.cpp 60KB
stdafx.cpp 1021B
attach_amd64.dll 331KB
attach_x86.dll 263KB
attach_x86_64.dylib 18KB
attach_x86.dylib 18KB
python.h 21KB
python.h 20KB
attach.h 1KB
stdafx.h 1KB
targetver.h 1KB
MANIFEST.in 43B
LICENSE 1KB
Makefile 2KB
README.md 1KB
README.md 1KB
PKG-INFO 508B
PKG-INFO 508B
pydevd_frame_evaluator.pxd 4KB
process.py 184KB
breakpoint.py 169KB
kernel32.py 166KB
peb_teb.py 159KB
advapi32.py 121KB
interactive.py 86KB
thread.py 76KB
module.py 71KB
event.py 67KB
pydevd.py 67KB
crash.py 66KB
textio.py 63KB
pydevd_comm.py 61KB
debug.py 59KB
user32.py 58KB
wrapper.py 56KB
_pydev_xmlrpclib.py 47KB
dbghelp.py 47KB
system.py 46KB
version.py 37KB
util.py 36KB
pydevd_frame.py 36KB
pydevd_process_net_command.py 35KB
sql.py 35KB
pydev_runfiles.py 32KB
_pydev_inspect.py 32KB
shlwapi.py 26KB
context_amd64.py 25KB
disasm.py 25KB
window.py 24KB
search.py 24KB
_pydev_SocketServer.py 24KB
defines.py 23KB
ntdll.py 23KB
pydev_console_utils.py 23KB
_pydev_BaseHTTPServer.py 23KB
pydev_monkey.py 22KB
registry.py 22KB
_pydev_SimpleXMLRPCServer.py 22KB
pydev_ipython_console_011.py 22KB
pydevd_vars.py 21KB
add_code_to_python_process.py 21KB
_pydev_pkgutil_old.py 20KB
_pydev_uuid_old.py 20KB
inputhook.py 19KB
pydevconsole.py 17KB
_pydev_jy_imports_tipper.py 17KB
pydevconsole_code_for_ironpython.py 17KB
pydevd_stackless.py 17KB
gdi32.py 17KB
pydevd_resolver.py 17KB
pydevd_file_utils.py 16KB
pydevd_concurrency_logger.py 16KB
context_i386.py 16KB
pydevd_reload.py 16KB
django_debug.py 16KB
jinja2_debug.py 15KB
shell32.py 14KB
psapi.py 14KB
pydevd_xml.py 12KB
ipcjson.py 12KB
wtsapi32.py 11KB
_pydev_imports_tipper.py 11KB
pydev_runfiles_xml_rpc.py 11KB
pydev_runfiles_parallel.py 10KB
safe_repr.py 10KB
pydevd_constants.py 10KB
pydevd_trace_dispatch_regular.py 10KB
pydevd_modify_bytecode.py 10KB
pydevd_console.py 9KB
pydevd_referrers.py 9KB
pydev_runfiles_pytest2.py 9KB
__init__.py 8KB
qt_loaders.py 8KB
pydev_runfiles_parallel_client.py 8KB
pydev_runfiles_unittest.py 8KB
共 222 条
- 1
- 2
- 3
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功