I'm new to mojolicious but have been using Perl for some time. I have to jump through some hoops but I can get the interactive Perl debugger (and Komodo) working with remote connections for Apache but I can't find anything about interactive debugging with hypnotoad or morbo.
The command line examples in the basic tutorial on http://mojolicio.us/perldoc/Mojolicious/Guides/Tutorial#Hello-World work fine because you can launch them with perl -d, but I don't see anyway to tell the hypnotoadctl script to put the service in interactive debug mode ala apache.
Is this not possible? Hints? Tips? Pointers?
morbo
andhypnotoad
are perl programs, so you can launch them with the-d
switch.It's probably easiest to sprinkle a bunch of
$DB::single = 1
statements around you app where you want your initial breakpoints to go and runc
as the first debugger command. When you run a request that hits a breakpoint, you'll get a debugger prompt in the terminal that launchedmorbo
.hypnotoad
will be trickier to use with the debugger because it quickly closes all the standard filehandles, callsfork
several times, and becomes a daemon.