Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I want to debug every HTTPs to my web server with PhpStorm + Xdebug

I have a LAMP web server running as a web server. I'm debugging its PHP code using Xdebug and PhpStorm.

I use Firefox with Xdebug helper enabled to send HTTP request to the web server, PhpStorm catches that request and starts debugging.

Now, I want PhpStorm to catch and debug any HTTP request to the web server (not only requests from Firefox+Xdebug helper). For example, I want to send HTTP requests via CURL/BURPSUITE for debugging purpose.

How can I do it?

like image 871
NTH Avatar asked Sep 14 '25 19:09

NTH


1 Answers

If you want Xdebug to always (try to) make a connection, simply set xdebug.remote_autostart=1 in php.ini. Then regardless of whether the cookie (that the Firefox extension sets) is present, Xdebug will make a connection to your IDE.

like image 135
Derick Avatar answered Sep 17 '25 10:09

Derick