No project description provided
Project description
这个是一系列函数、类的装饰器,在运行时,如果报错,那么将会进入调试状态 默认情况下:
- 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
movoid_debug-1.4.5.tar.gz
(17.8 kB
view details)
Built Distribution
File details
Details for the file movoid_debug-1.4.5.tar.gz
.
File metadata
- Download URL: movoid_debug-1.4.5.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d00c15a5cbe3265032492c02b02e8a1f2a6bfe45a5ffc5b0a8bbdd1780c7f8b |
|
MD5 | e5ec90a099995863f4d537d902d1fe28 |
|
BLAKE2b-256 | 482d8424d4b21ed386904bc0ec6a886487da4638d5df2cd1a362f45f8c5a9a81 |
File details
Details for the file movoid_debug-1.4.5-py3-none-any.whl
.
File metadata
- Download URL: movoid_debug-1.4.5-py3-none-any.whl
- Upload date:
- Size: 22.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4907e56751b206e7d46b6516790ed00a984f6230f2351132e5f18d9e60d7335 |
|
MD5 | e10b1d7ef69efe6888c46b54446bbe31 |
|
BLAKE2b-256 | 9e673e95058fc82d04724e30463c33f3db1c65e348edf217128c4964303fb306 |