-
-
Notifications
You must be signed in to change notification settings - Fork 604
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
REPL #42
Comments
The I like the idea, and have actually been playing around with the idea of integrating whoops with a REPL like d11wtq/boris...it's a complicated feature, but something I'd like to integrate as optional, further down the road. |
Great! I'm really interessted in this feature and would like to contribute. I'll contact you. |
+1 would be a really cool feature, I've used frameworks from other languages with this functionality and it was really helpful |
You should definitely take a look at Boris, a PHP REPL: https://github.com/d11wtq/boris |
You should prefer PsySH: https://github.com/bobthecow/psysh - a PHP REPL also running on windows. |
The PHP debugger Tracy has this feature - nette/tracy@59d9c81 You can see it in action http://vimeo.com/72138480 |
👍 for adding psysh as a repl |
@hason wow that is pretty cool! Would be great to get some values etc after an exception. |
The problem with integrating something like this is that it's not (currently, and not planned) possible for whoops to call back to itself between multiple requests in a reliable manner - there's no ties to any underlying routing logic. I can see a REPL working but possibly only with adapters for common routers/frameworks that allow whoops to bind its services to certain endpoints. Thoughts, @denis-sokolov? |
Looking at the commit mentioned by @hason, Nette also doesn't use any routing but set's up a listener for a socket connection and keeps the active request running, so it can be access through websockets in javascript. |
Discussion about integration PsySH to Symfony2 symfony/symfony#10094 |
Besides the direct socket creation, we can always act on a |
thats already the case right now... having the PrettyPageHandler installed on a production system as-is, is a security problem because it reveals a lot of app internals. |
A GitHub issue is a poor medium for a wishlist of features. Moved to the wiki. Feel free to continue using this issue for a discussion. |
I don't know if this is even possible in php but for ruby there exists a Gem (https://github.com/charliesome/better_errors) providing support for a REPL inside the browser for debugging and runtime information. I never saw something like this in PHP but I think that might be great and a huge improvement to the PHP community.
What do you guys think about this feature request?
The text was updated successfully, but these errors were encountered: