Debugging PHAR File
According to this post debugging a PHAR file should be possible. I'm trying to debug the Contao Manager, but it says "Can't compute source position. The script 'contao-manager.phar' isn't associated with any text file type.". Debugging normal PHP files works without problems. My setup is the following:
Remote:
Docker Container based on php:7.2-apache
PHP 7.2.10 with Xdebug 2.6.1
Host:
Windows 10
PhpStorm 2018.2.3
Please sign in to leave a comment.
Sorry for reviving an old post, but I was recently struggling with this. To step debug a phar archive you need to go to “Settings/ PHP/ Include Path” and add the directory there. That also makes it appear in the “Project” pane, under “External Libraries”.