Skip to content
Snippets Groups Projects
Commit 002f5b95 authored by rdubner's avatar rdubner
Browse files

Updated README to address cprint/h and cprint/b

parent 590dda0e
No related branches found
Tags Version4.2.1
No related merge requests found
......@@ -283,6 +283,12 @@ This means you can use shortcuts: `cprint REC` will show you all variables conta
More information on using the cbl-gdb debugger can be found at the [COBOLworx knowledge base](https://cobolworx.com/pages/cbl-gdb-kb.html)
## Alternative display formats
The CBL-GDB debugger that VSC relies on has the ability to display variables in both hex and binary. Although there is no way to tell VSC to use those methods directly, you can invoke them in the command line field of the DEBUG CONSOLE
Entering `cprint/x custmas-ctr` displays the variable in hexadecimal. `cprint/b custmas-ctr` displays the variable in binary.
## "Break on variable change"
Visual Studio Code has no provision for activating GDB's "variable watch" feature, which allows for "break when a variable changes". You can activate that feature from the command line entry field in VSC's DEBUG CONSOLE. For example, entering `watch custmas-ctr` in that field will cause execution to break when that variable's data changes.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment