gitv icon indicating copy to clipboard operation
gitv copied to clipboard

Debug slowness

Open baopham opened this issue 8 years ago • 3 comments

How do I debug when an action takes longer than expected? Currently, when I do a D in diff mode, the CPU goes wild.

baopham avatar Aug 17 '17 06:08 baopham

Usually, what I do is

:redir @a | 20verbose exec 'normal D' | redir END
:tabe
"ap

Hope that helps. Suggestions for built in debugging utilities is welcome.

rbong avatar Aug 17 '17 14:08 rbong

Thank you for the snippet. I couldn't get much info 🤔 I think it could be the git command itself but don't think currently there's a way we can print out the git command being executed?

baopham avatar Sep 13 '17 15:09 baopham

No, there isn't a way to currently do that unfortunately. Better error handling is planned.

rbong avatar Nov 18 '17 00:11 rbong