kablamo / VimDebug

Integrate your debugger with Vim. Currently supports Perl, Python, and Ruby. This code is very much in beta.
37 stars 7 forks source link

Support for $DB::single = 1 #28

Open kablamo opened 12 years ago

kablamo commented 12 years ago

The Perl debugger can't set a breakpoint in a dynamically loaded library until after it has loaded. This means you can't simply place a breakpoint anywhere you like. You will need to use [https://metacpan.org/module/perldebug#Debugging-Compile-Time-Statements]('$DB::single = 1') statements in your code.

Thats not the end of the world I guess but its not intuitive for first time users. I should provide a VIM shortcut for inserting that line of code. I would be good to highlight that line as a breakpoint