diff options
author | zvecr <git@zvecr.com> | 2019-02-17 03:13:58 +0000 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-02-16 21:20:18 -0800 |
commit | 338ca3569ac5b76f55b0664cf9d6eef11211b6b2 (patch) | |
tree | ad89c07944ae46c7efd1458253389f4a260d9537 /docs/newbs_testing_debugging.md | |
parent | 2cee371bf125a6ec541dd7c5a809573facc7c456 (diff) | |
download | qmk_firmware-338ca3569ac5b76f55b0664cf9d6eef11211b6b2.tar.gz qmk_firmware-338ca3569ac5b76f55b0664cf9d6eef11211b6b2.zip |
Add docs on using keyboard_post_init_user to enable debug modes
Diffstat (limited to 'docs/newbs_testing_debugging.md')
-rw-r--r-- | docs/newbs_testing_debugging.md | 12 |
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. | |||
15 | 15 | ||
16 | ## Debugging With QMK Toolbox | 16 | ## Debugging With QMK Toolbox |
17 | 17 | ||
18 | [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. | 18 | [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. |
19 | |||
20 | ```c | ||
21 | void keyboard_post_init_user(void) { | ||
22 | // Customise these values to desired behaviour | ||
23 | debug_enable=true; | ||
24 | debug_matrix=true; | ||
25 | //debug_keyboard=true; | ||
26 | //debug_mouse=true; | ||
27 | } | ||
28 | ``` | ||
19 | 29 | ||
20 | <!-- FIXME: Describe the debugging messages here. --> | 30 | <!-- FIXME: Describe the debugging messages here. --> |
21 | 31 | ||