debug: fix help and add docs for clear cmd (#20639)

This commit is contained in:
Felipe Pena 2024-01-23 18:08:37 -03:00 committed by GitHub
parent d88ca11a4c
commit 712d4a0a6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -24,6 +24,7 @@ mut:
completion_list: [
'anon?',
'bt',
'clear',
'continue',
'generic?',
'heap',
@ -38,7 +39,6 @@ mut:
'scope',
'unwatch',
'watch',
'clear',
]
}
}
@ -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('')
}