Skip to content

Commit

Permalink
debug: fix help and add docs for clear cmd (#20639)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Jan 23, 2024
1 parent d88ca11 commit 712d4a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/docs.md
Expand Up @@ -6215,7 +6215,7 @@ example.v:3 vdbg>
You can also see memory usage with `mem` or `memory` command, and
check if the current context is an anon function (`anon?`), a method (`method?`)
or a generic method (`generic?`).
or a generic method (`generic?`) and clear the terminal window (`clear`).
## Memory-unsafe code
Expand Down
4 changes: 2 additions & 2 deletions vlib/v/debug/debug.v
Expand Up @@ -24,6 +24,7 @@ mut:
completion_list: [
'anon?',
'bt',
'clear',
'continue',
'generic?',
'heap',
Expand All @@ -38,7 +39,6 @@ mut:
'scope',
'unwatch',
'watch',
'clear',
]
}
}
Expand Down Expand Up @@ -119,7 +119,7 @@ fn (mut d Debugger) print_help() {
println(' scope\t\t\tshow the vars in the current scope')
println(' u, unwatch <var>\tunwatches a variable')
println(' w, watch <var>\twatches a variable')
println(' clear\tClears the terminal window.')
println(' clear\t\t\tclears the terminal window')
flush_println('')
}

Expand Down

0 comments on commit 712d4a0

Please sign in to comment.