mirror of
https://github.com/vlang/v.git
synced 2025-09-09 23:39:39 -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
|
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?`)
|
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
|
## Memory-unsafe code
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@ mut:
|
|||||||
completion_list: [
|
completion_list: [
|
||||||
'anon?',
|
'anon?',
|
||||||
'bt',
|
'bt',
|
||||||
|
'clear',
|
||||||
'continue',
|
'continue',
|
||||||
'generic?',
|
'generic?',
|
||||||
'heap',
|
'heap',
|
||||||
@ -38,7 +39,6 @@ mut:
|
|||||||
'scope',
|
'scope',
|
||||||
'unwatch',
|
'unwatch',
|
||||||
'watch',
|
'watch',
|
||||||
'clear',
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -119,7 +119,7 @@ fn (mut d Debugger) print_help() {
|
|||||||
println(' scope\t\t\tshow the vars in the current scope')
|
println(' scope\t\t\tshow the vars in the current scope')
|
||||||
println(' u, unwatch <var>\tunwatches a variable')
|
println(' u, unwatch <var>\tunwatches a variable')
|
||||||
println(' w, watch <var>\twatches 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('')
|
flush_println('')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user