Debugging ist bunt! (Lightningtalk)
by Tina Müller (tinita) (Berlin.pm, Bicycle.pm)
Debugging ist bunt! aimed at Any and is held in Deutsch.
Viele von uns arbeiten oft mit simplem debugging per print.
Ich stelle ein paar kleine Tipps vor, um das einfacher zu machen, und bunt!
Vim mappings aus dem Talk:
" type $varname\DD
inoremap <leader>DD <ESC>^iwarn __PACKAGE__.':'.__LINE__.$".Data::Dumper->Dump([\<ESC>llyw$a], ['<ESC>pa']);<ESC>:s/\\\$/$/g<ENTER>
" type $varname\YY
inoremap <leader>YY <ESC>^2ywiXXX::YYY('===== \<ESC>$a =====', \<ESC>pA);<ESC>:s/\\\$/$/g<ENTER>
" type \DE
inoremap <leader>DE warn __PACKAGE__.':'.__LINE__.": \n";<ESC>hhhi
Modules:
https://metacpan.org/pod/distribution/XXX/lib/XXX.pod
https://metacpan.org/pod/Data::Dump::Color
https://metacpan.org/pod/YAML::PP::Highlight (use the latest developer version to be able to dump objects)
Tags: debug
Interest in attending: