wp-cli / shell-command

Opens an interactive PHP console for running and testing PHP code.
MIT License
20 stars 16 forks source link

Fixed PsySH initialization #49

Closed claudiosanches closed 4 years ago

claudiosanches commented 4 years ago

Hello! Thanks for this amazing project!

I found a small bug while trying to integrate with PsySH, seems like an incorrect command is used to initialize PsySH:

Screenshot from 2020-10-14 23-06-59

This happens because Psy\Shell::debug() is used to introduce breakpoints.

Note that Psy\Shell->run() is also used by all other integrations: https://github.com/bobthecow/psysh/wiki/Integrations

schlessera commented 4 years ago

Thanks for the PR, @claudiosanches !