Skip to content
This repository has been archived by the owner on Jan 13, 2021. It is now read-only.

How to make mojolicious run on the debugger #129

Open
dblanch opened this issue Oct 22, 2019 · 1 comment
Open

How to make mojolicious run on the debugger #129

dblanch opened this issue Oct 22, 2019 · 1 comment

Comments

@dblanch
Copy link

dblanch commented Oct 22, 2019

I can't put breakpoints visually. At the begining yes, it works, but latter it does not. I'm able to stop / add breakpoints using $DB::single = 1;
from there I can use the debugger.

Here is my configuration:

    {
        "type": "perl",
        "request": "launch",
        "name": "Mojolicious",
        "program": "${workspaceRoot}/script/xmedia_lite.pl",
        "exec": "perl",
        "execArgs": [],
        "root": "${workspaceRoot}/",
        "inc": [],
        "args": ["daemon"],
        "env": {},
        "stopOnEntry": true,
    },

$uname -a
Darwin Korova.local 18.7.0 Darwin Kernel Version 18.7.0: Thu Jun 20 18:42:21 PDT 2019; root:xnu-4903.270.47~4/RELEASE_X86_64 x86_64
$perl -v

This is perl 5, version 26, subversion 0 (v5.26.0) built for darwin-2level
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2017, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

@raix
Copy link
Owner

raix commented Oct 24, 2019

@dblanch ok - so can I conclude that we just need to exec $DB::single = 1 on startup?

We already do that at:

await this.streamCatcher.request('$DB::single = 1;');
not sure why that isn't working

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants