aboutsummaryrefslogtreecommitdiff
path: root/docs/unit_testing.md
diff options
context:
space:
mode:
authorfauxpark <fauxpark@gmail.com>2017-12-09 16:56:58 +1100
committerJack Humbert <jack.humb@gmail.com>2017-12-09 10:46:11 -0500
commitbb53635f33c213e5a940edea8b07026ef89aed42 (patch)
tree7e170b424e37b7305f8be3072cd8c970f77ca073 /docs/unit_testing.md
parentaf37bb2f78c39c224c995eb57c757c63034a3d9c (diff)
downloadqmk_firmware-bb53635f33c213e5a940edea8b07026ef89aed42.tar.gz
qmk_firmware-bb53635f33c213e5a940edea8b07026ef89aed42.zip
Trim trailing whitespace
Diffstat (limited to 'docs/unit_testing.md')
-rw-r--r--docs/unit_testing.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/unit_testing.md b/docs/unit_testing.md
index 31aa79f82..06d23a9cc 100644
--- a/docs/unit_testing.md
+++ b/docs/unit_testing.md
@@ -52,7 +52,7 @@ In that model you would emulate the input, and expect a certain output from the
52 52
53Sometimes you might wonder why a variable gets changed and where, and this can be quite tricky to track down without having a debugger. It's of course possible to manually add print statements to track it, but you can also enable the variable trace feature. This works for both for variables that are changed by the code, and when the variable is changed by some memory corruption. 53Sometimes you might wonder why a variable gets changed and where, and this can be quite tricky to track down without having a debugger. It's of course possible to manually add print statements to track it, but you can also enable the variable trace feature. This works for both for variables that are changed by the code, and when the variable is changed by some memory corruption.
54 54
55To take the feature into use add `VARIABLE_TRACE=x` to the end of you make command. `x` represents the number of variables you want to trace, which is usually 1. 55To take the feature into use add `VARIABLE_TRACE=x` to the end of you make command. `x` represents the number of variables you want to trace, which is usually 1.
56 56
57Then at a suitable place in the code, call `ADD_TRACED_VARIABLE`, to begin the tracing. For example to trace all the layer changes, you can do this 57Then at a suitable place in the code, call `ADD_TRACED_VARIABLE`, to begin the tracing. For example to trace all the layer changes, you can do this
58```c 58```c