New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Add XDebug #244

Closed
mcordingley opened this Issue Jul 19, 2016 · 3 comments

Comments

Projects
None yet
3 participants
@mcordingley

mcordingley commented Jul 19, 2016

With these additional configuration values in both php.ini files:

xdebug.remote_enable=1
xdebug.remote_host=192.168.33.1
xdebug.remote_autostart=1

This way, the VM side of things comes set up out of the box for interactive debugging. It will attempt to connect to the host on each script execution. If there is no debugger listening on the host, it will continue with script execution without issue or delay.

@maxpou

This comment has been minimized.

maxpou commented Jul 20, 2016

⚠️ Take care, xdebug may impact runtime performance (i.e. tools like Composer).

Read this: http://nikic.github.io/2012/01/19/Careful-XDebug-can-skew-your-performance-numbers.html

@mcordingley

This comment has been minimized.

mcordingley commented Jul 20, 2016

True, but Scotchbox is intended for development purposes, not production systems. Same goes for XDebug. You wouldn't run it on a production system. The performance overhead that XDebug would incur should be small enough that it wouldn't even be noticed in a development setting. What's a few more milliseconds when there's only the one user?

@whatnickcodes

This comment has been minimized.

Member

whatnickcodes commented Jul 20, 2016

No plans for this guys! Sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment