Local Community

WP-CLI and Xdebug with Local Lightning

With Local 3.x I had to be on the virtual machine’s shell to have WP-CLI commands trigger Xdebug breakpoints. I could not issue the commands from my Mac and have the breakpoints tripped. However, with Local Lightning there is no more Docker virtual machine, as the processes are just run directly on macOS. This means that, as far as I can tell, I have no way of tripping Xdebug breakpoints when running WP-CLI commands. Since I’ve used a special set of custom WP-CLI commands for debugging that let me run arbitrary PHP, this is a bit annoying. Is there a way right now that I can configure my Local Lightning sites such that WP-CLI commands issued, now straight from my Mac’s shell as that is all we have, will trip Xdebug breakpoints, or is that coming in a later beta release?