Skip to content

Commit

Permalink
Edit Unit Testing Documentation (qmk#8961)
Browse files Browse the repository at this point in the history
  • Loading branch information
hartalex authored Apr 28, 2020
1 parent e1217da commit e02a3c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/unit_testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ In that model you would emulate the input, and expect a certain output from the

# Tracing Variables :id=tracing-variables

Sometimes 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.
Sometimes 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 variables that are changed by the code, and when the variable is changed by some memory corruption.

To 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.

Expand Down

0 comments on commit e02a3c5

Please sign in to comment.