docker-magento icon indicating copy to clipboard operation
docker-magento copied to clipboard

Xdebug not working

Open shuat opened this issue 7 years ago • 4 comments

I followed your instructions and ran bin/xdebug enable

My launch.json looks like the below example https://github.com/markshust/docker-magento/blob/master/compose/magento-2/.vscode/launch.json

Getting the following error in debug console

Error applying xdebugSettings: invalid or missing options

It is also not stopping on breakpoint .

shuat avatar Aug 16 '19 20:08 shuat

Quick Fix: Remove xdebugSettings: { ... } from launch.json

cernydav avatar Aug 20 '19 07:08 cernydav

@cernydav Thanks for that suggestion as it removed the error. The issue is that even when running debug it does stop on breakpoints. What am I doing wrong?

shuat avatar Aug 29 '19 03:08 shuat

I had a similar problem and spent too much time trouble shooting. My problem was that my "Page Cache" was enabled.

System -> Cache Management

Select the "Page Cache" row in the Cache Type table and select "disable" in the drop down on the top to disable the "Page Cache".

After I disabled the "Page Cache" everything was working as intended.

johan-lindahl avatar Sep 07 '19 17:09 johan-lindahl

closing this one out, as it appears to be working for other people. @shuat i'm only intricately familiar with phpstorm, but perhaps someone can help you with this.

markshust avatar Sep 13 '19 13:09 markshust