summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorzvecr <git@zvecr.com>2019-02-17 04:13:58 +0100
committerDrashna Jaelre <drashna@live.com>2019-02-17 06:20:18 +0100
commit338ca3569ac5b76f55b0664cf9d6eef11211b6b2 (patch)
treead89c07944ae46c7efd1458253389f4a260d9537 /docs
parent2cee371bf125a6ec541dd7c5a809573facc7c456 (diff)
downloadqmk_firmware-338ca3569ac5b76f55b0664cf9d6eef11211b6b2.tar.gz
qmk_firmware-338ca3569ac5b76f55b0664cf9d6eef11211b6b2.tar.xz
Add docs on using keyboard_post_init_user to enable debug modes
Diffstat (limited to 'docs')
-rw-r--r--docs/newbs_testing_debugging.md12
1 files changed, 11 insertions, 1 deletions
diff --git a/docs/newbs_testing_debugging.md b/docs/newbs_testing_debugging.md
index 45509110a..d78311339 100644
--- a/docs/newbs_testing_debugging.md
+++ b/docs/newbs_testing_debugging.md
@@ -15,7 +15,17 @@ Note: These programs are not provided by or endorsed by QMK.
## Debugging With QMK Toolbox
-[QMK Toolbox](https://github.com/qmk/qmk_toolbox) will show messages from your keyboard if you have `CONSOLE_ENABLE = yes` in your `rules.mk`. By default the output is very limited, but you can turn on debug mode to increase the amount of debug output. Use the `DEBUG` keycode in your keymap, or use the [Command](feature_command.md) feature to enable debug mode.
+[QMK Toolbox](https://github.com/qmk/qmk_toolbox) will show messages from your keyboard if you have `CONSOLE_ENABLE = yes` in your `rules.mk`. By default the output is very limited, but you can turn on debug mode to increase the amount of debug output. Use the `DEBUG` keycode in your keymap, use the [Command](feature_command.md) feature to enable debug mode, or add the following code to your keymap.
+
+```c
+void keyboard_post_init_user(void) {
+ // Customise these values to desired behaviour
+ debug_enable=true;
+ debug_matrix=true;
+ //debug_keyboard=true;
+ //debug_mouse=true;
+}
+```
<!-- FIXME: Describe the debugging messages here. -->