juliusknorr / nextcloud-docker-dev

Nextcloud development environment using docker-compose
GNU Affero General Public License v3.0
139 stars 74 forks source link

Unable to use xdebug on php 8.1 #335

Open mijorus opened 2 months ago

mijorus commented 2 months ago

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

juliusknorr commented 2 months ago

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.