Skip to main content

wuqi debug tool

Project description

wqdebug

Install

pip install wqdebug

Usage

# cmd or powershell or bash
wqdebug --help

GDB

run gdb

# cmd or powershell or bash
wqdebug gdb

LOG

log parse

# cmd or powershell or bash
wqdebug log

origin log:

2025-05-28 14:38:45 325 [A-105 ] [285.6]>[D] [BT] app_bt_send_rpc_cmd 5 ret=0
2025-05-28 14:38:45 332 [B-85  ] [294.7]>[I] [LIB] bt handle cmd:1
2025-05-28 14:38:45 331 [A-116 ] [292.4]>[D] [MAIN] app_send_msg type:3 id:8001 param_len:4 priority:0
2025-05-28 14:38:50 633 [A-401 ] [6065.2]>[I] [WWS] app_wws_send_remote_msg type:16 id:5 param_len:12
2025-05-28 14:38:50 599 [A-387 ] [6035.1]>[I] [WWS] wws_handle_remote_msg type:16 id:5 param_len:12
2025-06-21 18:42:57 180 [A-230 ] [267150.6]>app_send_msg_delay type:2 id:2 delay:1000
2025-06-21 18:42:57 182 [A-231 ] [267150.8]>handle_msg type:2 id:2 run_time_ms:0
2025-06-21 18:42:57 225 [A-235 ] [267214.8]>app_cancel_delay_msg type:13 id:1 triggered:0
2025-05-28 14:39:10 249 [A-699 ] [25622.5]>[I] [BT] sys_state 0x8=>0x10
2025-05-28 14:38:47 901 [B-267 ] [3332.5]>[I] [BT_CTRL] TDS:lc_lmp_tx_cfm:idx=0,opcode=38,ext_opcode=0
2025-05-28 14:38:47 901 [B-268 ] [3332.9]>[I] [BT_CTRL] TDS:lc_lmp_rx:idx=0,opcode=39,ext_opcode=0
2025-05-28 14:38:47 902 [B-270 ] [3334.0]>[I] [BT_CTRL] TDS:lc_lmp_tx:idx=0,opcode=40,ext_opcode=0
2025-05-28 14:41:35 028 [A-256 ] [170432.1]>[W] [DRIVER] [auto][WARNING]vector:117 time 289
2025-06-21 18:42:58 194 [A-379 ] [268150.1]>WARNING: This rpc task is too heavy!""src:1, cmd:24, interval 30659
2025-06-21 18:21:53 847 [B-109 ] [1352.0]>RX HCI_COMMAND_COMPLETE_EVENT. Packets Num: 5, Opcode: 0xFC65, Status: 0x00

replace log:

2025-05-28 14:38:45 325 [A-105 ] [285.6]>[D] [BT] app_bt_send_rpc_cmd 5(BT_CMD_GET_LOCAL_ADDR) ret=0(BT_RESULT_SUCCESS)
2025-05-28 14:38:45 332 [B-85  ] [294.7]>[I] [LIB] bt handle cmd:1(BT_CMD_SET_ENABLED)
2025-05-28 14:38:45 331 [A-116 ] [292.4]>[D] [MAIN] app_send_msg type:3(MSG_TYPE_EVT) id:8001 param_len:4 priority:0
2025-05-28 14:38:50 633 [A-401 ] [6065.2]>[I] [WWS] app_wws_send_remote_msg type:16(MSG_TYPE_OTA) id:5 param_len:12
2025-05-28 14:38:50 599 [A-387 ] [6035.1]>[I] [WWS] wws_handle_remote_msg type:16(MSG_TYPE_OTA) id:5 param_len:12
2025-06-21 18:42:57 180 [A-230 ] [267150.6]>app_send_msg_delay type:2(MSG_TYPE_WWS) id:2 delay:1000
2025-06-21 18:42:57 182 [A-231 ] [267150.8]>handle_msg type:2(MSG_TYPE_WWS) id:2 run_time_ms:0
2025-06-21 18:42:57 225 [A-235 ] [267214.8]>app_cancel_delay_msg type:13(MSG_TYPE_USR_CFG) id:1 triggered:0
2025-05-28 14:39:10 249 [A-699 ] [25622.5]>[I] [BT] sys_state 0x8(STATE_CONNECTABLE)=>0x10(STATE_AG_PAIRING)
2025-05-28 14:38:47 901 [B-267 ] [3332.5]>[I] [BT_CTRL] TDS:lc_lmp_tx_cfm:idx=0,opcode=38(LMP_VER_RES_OPCODE),ext_opcode=0
2025-05-28 14:38:47 901 [B-268 ] [3332.9]>[I] [BT_CTRL] TDS:lc_lmp_rx:idx=0,opcode=39(LMP_FEATS_REQ_OPCODE),ext_opcode=0
2025-05-28 14:38:47 902 [B-270 ] [3334.0]>[I] [BT_CTRL] TDS:lc_lmp_tx:idx=0,opcode=40(LMP_FEATS_RES_OPCODE),ext_opcode=0
2025-05-28 14:41:35 028 [A-256 ] [170432.1]>[W] [DRIVER] [auto][WARNING]vector:117(WIC_WAKEN_UP_INT_BT2DCORE) time 289
2025-06-21 18:42:58 194 [A-379 ] [268150.1]>WARNING: This rpc task is too heavy!""src:1(BT_CORE), cmd:24(RPC_CMD_audio_sys_create_stream_ext), interval 30659
2025-06-21 18:21:53 847 [B-109 ] [1352.0]>RX HCI_COMMAND_COMPLETE_EVENT. Packets Num: 5, Opcode: 0xFC65, Status: 0x00

Develop

pip install -e .

Test

pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wqdebug-1.0.6.tar.gz (129.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wqdebug-1.0.6-py3-none-any.whl (178.7 kB view details)

Uploaded Python 3

File details

Details for the file wqdebug-1.0.6.tar.gz.

File metadata

  • Download URL: wqdebug-1.0.6.tar.gz
  • Upload date:
  • Size: 129.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for wqdebug-1.0.6.tar.gz
Algorithm Hash digest
SHA256 3c8d3b0670e62e396928e5f6ddecc2aadbc4330a5cee8e6159aae7058addb52c
MD5 f172b909f9d3434a2342747ead3ce8c5
BLAKE2b-256 fa3f7ee91dacb89e7c761d5e99369bef055a4b07ca2dfa7b6afa8e7eee4bee35

See more details on using hashes here.

File details

Details for the file wqdebug-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: wqdebug-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 178.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for wqdebug-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 90859f37000a10f9313001c491ce3e569445203fccdff884fb8f0996ad5ed933
MD5 21e3828fa5ed014e0116450d2bc7d8b4
BLAKE2b-256 27b754f4146452098d568dcf01c94348c84298d0d3b0bb651f76e1433b7164bb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page