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
```
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
omnetpp-6.0-windows-x86_64.zip (2000个子文件)
sqlite3.c 7.89MB
pydevd_cython.c 1.95MB
pydevd_frame_evaluator.c 920KB
yxml.c 24KB
attach.cpp 27KB
inject_dll.cpp 5KB
attach.cpp 4KB
run_code_on_dllmain.cpp 2KB
stdafx.cpp 999B
application.css 84KB
application-palette.css 41KB
doxygen.css 30KB
doxygen.css 30KB
doxygen.css 30KB
doxygen.css 30KB
font-awesome.css 30KB
basic.css 14KB
basic.css 14KB
alabaster.css 11KB
application-fixes.css 9KB
e4-dark_globalstyle.css 9KB
e4-dark_ide_colorextensions.css 9KB
tabs.css 8KB
tabs.css 8KB
tabs.css 8KB
tabs.css 8KB
e4-light_ide_colorextensions.css 5KB
e4-dark_win.css 5KB
e4-light_ide_colorextensions.css 5KB
pygments.css 4KB
pygments.css 4KB
e4-dark_tabstyle.css 4KB
narrow_book.css 4KB
book.css 4KB
e4_system.css 3KB
e4-dark_partstyle.css 3KB
narrow_book.css 3KB
e4-dark_preferencestyle.css 3KB
e4-light_tabstyle.css 3KB
book.css 3KB
e4_default_mac.css 3KB
e4-dark_mac1013.css 3KB
e4-light_tabstyle.css 3KB
e4_default_gtk.css 3KB
e4-light_globalstyle.css 2KB
e4_default_win.css 2KB
navtree.css 2KB
navtree.css 2KB
navtree.css 2KB
navtree.css 2KB
e4-light_globalstyle.css 2KB
e4-dark_mac.css 2KB
e4_classic.css 2KB
e4-dark_linux.css 2KB
omnetpp.css 2KB
omnetpp.css 2KB
whatsnew.css 1KB
e4_basestyle.css 1KB
material-icons.css 891B
e4-light_partstyle.css 860B
e4-light_partstyle.css 860B
e4-light-drag-styling.css 831B
e4-light-drag-styling.css 831B
high-contrast.css 817B
e4-dark-drag-styling.css 769B
e4_globalstyle.css 761B
e4-pydev-dark_preferencestyle.css 748B
material.css 672B
book.css 578B
disabled_book.css 356B
disabled_book.css 356B
macosx_narrow_book.css 269B
migrate.css 188B
overview.css 177B
intro.css 142B
custom.css 42B
macosx_narrow_book.css 32B
sqlite3.h 571KB
ccanvas.h 131KB
jvmti.h 82KB
AccessBridgePackages.h 76KB
jni.h 74KB
ccomponent.h 49KB
cmodule.h 37KB
cenvir.h 37KB
AccessBridgeCalls.h 35KB
Units.h 31KB
exprnodes.h 29KB
csimplemodule.h 28KB
crandom.h 27KB
forcedirectedparameters.h 26KB
cmessage.h 23KB
cconfiguration.h 23KB
resultfilemanager.h 22KB
cmodelchange.h 22KB
classfile_constants.h 22KB
csimulation.h 22KB
cpar.h 20KB
qtenv.h 20KB
simtime.h 20KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
shenbuzhi
- 粉丝: 1
- 资源: 14
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功