-
Notifications
You must be signed in to change notification settings - Fork 16
xdebug instructions #192
Description
I am having trouble getting xdebug to work with ddev quicksprint.
➜ ~ ddev list
NAME TYPE LOCATION URL STATUS
sprint-20201209-1650 drupal9 ~/sprint/sprint-20201209-1650/drupal https://sprint-20201209-1650.ddev.site:8443 running
DDEV ROUTER STATUS: healthy
➜ ~ cd ~/sprint/sprint-20201209-1650/drupal
➜ drupal git:(2946-255) ✗ ddev xdebug status
xdebug disabled
➜ drupal git:(2946-255) ✗ ddev xdebug on
Enabled xdebug
Following instructions from: https://ddev.readthedocs.io/en/stable/users/step-debugging/
PhpStorm "zero-configuration debugging" did not work, I don't get my breakpoints to hit.
Tested this by setting a breakpoint at the top of index.php, but could not get this breakpoint to hit.
$autoloader = require_once 'autoload.php';
I'm using chrome browser with the "Xdebug helper" extension, this works for me usually in my other environments.
I ended up trying the "PhpStorm "Run/Debug configuration" Debugging" instructions from https://ddev.readthedocs.io/en/stable/users/step-debugging/
Now, when I hit the debug button I get this error, because I am hitting the site using http not https:
http://sprint-20201209-1650.ddev.site:8443/?XDEBUG_SESSION_START=17541
The plain HTTP request was sent to HTTPS port, so that gives me a clue how we can fix this ...
I think the problem is something to do with the 8443 port used by quicksprint?