Add magic function %drun to run code in debugger

%drun is pretty much like %prun but instead it starts debugger rather than profiler.

This PR is made on top of #3066.  I will rebase it after #3066 is merged if needed.