mirror of
https://github.com/vlang/v.git
synced 2025-09-08 23:07:19 -04:00
debug: fix help and add docs for clear cmd (#20639)
This commit is contained in:
parent
d88ca11a4c
commit
712d4a0a6b
@ -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
|
||||
|
||||
|
@ -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('')
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user