6215 - show call stack in trace
This commit is contained in:
parent
6c29edc726
commit
b2c8b7327b
|
@ -65,6 +65,10 @@ endif
|
|||
" see https://github.com/akkartik/mu/blob/master/Readme.md#a-few-hints-for-debugging
|
||||
command! -nargs=0 L exec "%!grep label |grep -v clear-stream:loop"
|
||||
|
||||
" show the call stack for the current line in the trace (by temporarily blowing away all earlier lines)
|
||||
"? command! -nargs=0 C 1,.!awk '$4 == "label"{x[$1] = $0; for(i in x){if(i >= $1){delete x[i]}}} END{for (i in x) {if (i < $1) {print x[i]}}}'
|
||||
command! -nargs=0 C 1,.!awk '{x[$1] = $0} END{for (i in x) {if (int(i) < int($1)) {print x[i]}}}'
|
||||
|
||||
" run test around cursor
|
||||
if empty($TMUX)
|
||||
" hack: need to move cursor outside function at start (`{`), but inside function at end (`<C-o>`)
|
||||
|
|
Loading…
Reference in New Issue