这个是一系列函数、类的装饰器,在运行时,如果报错,那么将会进入调试状态 默认情况下:
- 1:将所有Exception raise 出去,不做任何处理
- 2:将Exception保存下来,可以在任意的地方调用某个方法抛出
debug状态下:
- 0:直接进入debug模式,弹出窗口,并进行操作
- 1:将所有Exception raise 出去,不做任何处理
- 2:将Exception保存下来,可以在任意的地方调用某个方法抛出
启动方法
命令行
在命令行运行python脚本时,可以在命令行中额外输入__debug=1或__debug=debug来启动debug状态,其他指令均为默认情况
代码
在代码中可以通过以下方式来直接开启debug模式
from movoid_debug import FLOW
FLOW.debug_type=1
Metadata
Release files for movoid-debug 1.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| movoid_debug-1.6.1.tar.gz | 26.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| movoid_debug-1.6.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 58.9 kB
Release files / movoid_debug-1.6.1.tar.gz
| Download URL | movoid_debug-1.6.1.tar.gz |
|---|---|
| Size | 26.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6010b2ae5e7e6648f12aec70238e0ce7974ed187a8f0aa13c0a6d43609ff9c2d
|
|
BLAKE2b-256 checksum How to use checksums |
e61fe6211eae4ac3c6f0ee18755ff434ba8f7b9476cabe81656765260b3df33a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / movoid_debug-1.6.1-py3-none-any.whl
| Download URL | movoid_debug-1.6.1-py3-none-any.whl |
|---|---|
| Size | 32.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e08cb8b268c3075c375fda863e795e924a0b69a7180d89ee4ff881eaea240e3
|
|
BLAKE2b-256 checksum How to use checksums |
07f24f819618115d9728c5ed81d04541700478a0add499a9f2d18595bad244a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|