Welcome Guest, Not a member yet? Register   Sign In
spark serve with Xdebug?
#1

(This post was last modified: 02-24-2023, 01:51 AM by Garett. Edit Reason: it works )

It is possible to launch build-in PHP web server with Xdebug, simply by following command:
Code:
php -dxdebug.mode=debug -dxdebug.start_with_request=yes -S localhost:0 -t publicĀ 

By that, you can debug your own application, eg breakpoint, watch, etch.
How to do the same but with spark? I tried the same thing, but doesn't work.

*Update*
Xdebug is smart. As long as it's on same machine and same IP. You can just set the IDE to listen to XDebug then run "spark serve" in normal way, even the port is not 80. Be sure to set the php.ini with following lines:
Code:
[XDebug]
xdebug.mode = debug
xdebug.start_with_request = yes
Reply




Theme © iAndrew 2016 - Forum software by © MyBB