nextcloud-docker-dev icon indicating copy to clipboard operation
nextcloud-docker-dev copied to clipboard

Unable to use xdebug on php 8.1

Open mijorus opened this issue 1 year ago • 1 comments

Hi, I want to use xdebug to debug my code. I've already ran the configuration script, and I can see xdebug from phpinfo.

However, when I try to open a debugging session from vscode, it does not work. Do I have to expose ports or something?

I tried multiple things without success

Thank you

mijorus avatar Aug 09 '24 08:08 mijorus

The IDE will have a port listening where xdebug will try to connect to.

xdebug will have a log in the container that is likely helpful to further debug this:

docker-compose exec nextcloud cat /var/log/xdebug.log

https://xdebug.org/docs/all_settings#log_level

How are you trying to trigger the request with debugging? By default we require a trigger to start debugging

I might be able to give a few more hints if you share how you configured vscode.

juliusknorr avatar Aug 14 '24 12:08 juliusknorr

Closing as there was no feedback, feel free to comment if you still need help

juliusknorr avatar Jan 15 '25 07:01 juliusknorr