Value Logging
Logging Limits
By default, Quokka limits how many runtime values are logged for a specific piece of code.
For a selected variable, or specific use of console.log
the log limit is 100 values. You may change this behavior with
the logLimit
setting, for example:
Default overall limit for all code logs is 1000 values. You may change this behavior with the maxConsoleMessages
setting, for example:
Auto Log
Quokka ‘Pro’ allows users to change the behavior of Quokka to use Show Value
to automatically show the runtime value
for every line of code. This behavior can be changed after starting Quokka using the Toggle Auto Log
command.
By default, this behavior is disabled but may be changed using the autoLog
configuration setting:
Show Value on Selection
Quokka ‘Pro’ can show the runtime value of an expression when an expression is selected in your editor. To enable the
feature you may use the showValueOnSelection
setting (off by default).
Show All Selected Values
By default, Quokka ‘Pro’ shows only the runtime value for one last selected expression or one last Show Value
command
usage. You may set the showSingleInlineValue
setting to false
to turn this behavior off and display multiple values.
The setting is only available for VSCode and JetBrains IDEs.
Resolve Getters
By default, Quokka will not resolve getters when showing runtime values. This is because getters may contain executable
code and if Quokka resolves them when showing a runtime value then your program execution flow may change. You may
change this behavior by setting resolveGetters
to true
.