mirror of
https://github.com/qmk/qmk_firmware.git
synced 2026-10-01 22:40:11 +02:00
Migrate other usages of :id=...
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
此页面详细介绍了人们对键盘故障排除的各种常见问题。
|
||||
|
||||
## 调试 :id=debugging
|
||||
## 调试 {#debugging}
|
||||
|
||||
如果你在 `rules.mk` 中配置了 `CONSOLE_ENABLE = yes`,你的键盘将会输出调试信息。默认情况下输出很有限,可以启用调试模式来增加调试输出的丰富度。使用你的键映射方案中的 `DEBUG` 键码,或使用[指令](zh-cn/feature_command.md)功能来启动调试模式,或者将下面这段代码放到你的键映射中:
|
||||
|
||||
@@ -37,7 +37,7 @@ void keyboard_post_init_user(void) {
|
||||
|
||||
更喜欢使用终端的方案?PJRC提供的[hid_listen](https://www.pjrc.com/teensy/hid_listen.html)也可以用来展示调试信息,已有Windows、Linux及MacOS下预编译好的可执行文件。
|
||||
|
||||
## 发送自定义调试信息 :id=debug-api
|
||||
## 发送自定义调试信息 {#debug-api}
|
||||
|
||||
有时在[自定义代码](zh-cn/custom_quantum_functions.md)中输出调试信息非常有用,要做到这个功能也很简单,在代码文件头部包含 `print.h` 文件:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user