这个是一系列函数、类的装饰器,在运行时,如果报错,那么将会进入调试状态 默认情况下:
- 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.0
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.0.tar.gz | 26.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| movoid_debug-1.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 58.9 kB
Release files / movoid_debug-1.6.0.tar.gz
| Download URL | movoid_debug-1.6.0.tar.gz |
|---|---|
| Size | 26.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f11e5349f2dab4c1e140d24b8d25677eadf11549a899e4360e104a8276ca3893
|
|
BLAKE2b-256 checksum How to use checksums |
ca92daf62252cf93cfe4ab9afa573aef0c7d7fc91c76c067a8954c06a2f6204d
|
| 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.0-py3-none-any.whl
| Download URL | movoid_debug-1.6.0-py3-none-any.whl |
|---|---|
| Size | 32.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bceb26517a6728cc8d9cf27e483dd046fcea043be23f2fbcfb136a425dbbf791
|
|
BLAKE2b-256 checksum How to use checksums |
24e1463314daaa7c9b8d560ae2df91b9de6133cd2e58ef42d38867b9c5bfd50c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|