[Koha-devel] how to debug

Tomas Cohen Arazi tomascohen at gmail.com
Thu Apr 9 15:21:46 CEST 2020


I will add the debugger into koha-testing-docker for simplicity.
When breakpoints don't work, it is because of the mappings.

In KohaDevBox the hostname for the VM was 'kohadevbox' and the URI mapping
was set to //kohadevbox/home/vagrant/kohaclone <- that still works
In koha-testing-docker the last time I tried the problem was the hostname
was resolved into something a bit random like koha_koha_11236287361287.
Maybe that's where things don't work.

El lun., 6 abr. 2020 a las 12:30, M.Wahls (<marco.wahls at gmx.de>) escribió:

> Hello koha-devel,
>
> i'm facing a general problem on debugging.
> The remote debugger (on koha-testing-docker instance) seams to ignore my
> breakpoints.
> If the debugger connects my Komodo-11.1 it stops on the first executable
> (starman file) and thats it.
>
> In my example i used Ubuntu.
> Koha-testing-docker and Komodo-11.1 are up and running.
> the debugger connects to komodo.
>
> Here are my steps on koha-testing-docker:
> wget
>
> https://downloads.activestate.com/Komodo/releases/11.1.1/remotedebugging/Komodo-PerlRemoteDebugging-11.1.1-91089-linux-x86_64.tar.gz
> tar xzf Komodo-PerlRemoteDebugging-11.1.1-91089-linux-x86_64.tar.gz
> mkdir dbgp
> mkdir dbgp/perllib
> mv Komodo-PerlRemoteDebugging-11.1.1-91089-linux-x86_64/* dbgp/perllib/
> rm -rf Komodo-PerlRemoteDebugging-11.1.1-91089-linux-x86_64
> ip a
> sudo koha-plack --stop kohadev
> start_plack_debug
>
> the mapping on the komodo project is configured like this:
> URI: file://dd1090d5f944/kohadevbox/koha
> Maps to: /home/user/git/koha
>
> it's really a strange problem. And because of a lack of documentation
> i'm not sure if i just misconfigured something tiny - albeit reading a
> lot of tutorials and documentation on remote debugging Perl in general.
> i would sugest the best way is to take a look on a machine i put online.
> Because it's more handy than writing mails. Feel free to send me an
> email: marco.wahls at gmx.de
>
> best wishes
> Marco
> _______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.koha-community.org
> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> website : http://www.koha-community.org/
> git : http://git.koha-community.org/
> bugs : http://bugs.koha-community.org/
>


-- 
Tomás Cohen Arazi
Theke Solutions (http://theke.io)
✆ +54 9351 3513384
GPG: B2F3C15F
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20200409/b4774ec2/attachment.html>


More information about the Koha-devel mailing list