It would be great to be able to debug exception in dev mode with PsySH.
I've not yet look at the details and how hard this could be but using a REPL to debug misbehaved code is something really useful - This is something avaiable in the Python Pylons framework.
There is this one too: https://github.com/d11wtq/boris
We can use websocket as in experimental implementation for the Tracy nette/tracy@59d9c81 - see in action http://vimeo.com/72138480
@lyrixx PsySH also works on windows
@hason The video shows exactly what I was thinking about, would be great to investigate more.
@vicb Great idea..really cool stuff :)
👍 great idea
We are on it ;)
huge ass 👍
Not completely positive, but isn't PHPDGB going to be included in PHP 5.6? Perhaps we should look in that direction...
seems cool 👌
An another example of using websockets https://github.com/Hywan/PHP-live-execution
So I have tried lot of things:
I use both PsySh and Symfony. PsySH is based upon Symfony/Command and i usually get conflicts when the component version that uses is different than the one on PsySh. It would be great to integrate both and solve this.
Even more funnier if a repl is open as a debug option. @lyrixx you could capture exceptions changing the handler, and even some errors. I made a proof of concept here https://github.com/varas/errepl
@varas If you add PsySH to your symfony project's composer.json then do composer update, it'll figure out a version of symfony and psysh that work together and you won't have any conflicts :)
Sorry, I did not take time to comment this topic.
We have tried to add a REPL when an exception is found but it's not so nice:
Thanks @bobthecow i'm used to include require-dev's from global, but that seems to be more convenient.
ping! any code samples, updates or a project started on this, should i work from scratch?
All my code is a very quick & dirty code.
But you can have a look to: https://github.com/dpb587/ti-debug which is a good start.
Looks like it's not that easy. If anyone can create a PR, that would be great; closing this issue in the meantime.
If you're looking for a simple CLI for the container, kernel, and parameters, check out https://github.com/theofidry/PsyshBundle