3 ms·
To those who, like me, thought PHP already has this: > PHP's interactive mode does not print the result of evaluating expressions and more importantly, it exit
by martinml 13y ago
To those who, like me, thought PHP already has this:
> PHP's interactive mode does not print the result of evaluating expressions and more importantly, it exits if you type something that produces a fatal error, such as invoking a function/method that does not exist, or an uncaught exception. Boris is designed to be robust, like other REPLs, so you can experiment with things that you know may error, without losing everything.
- gingerlime 13y agoI was wondering the exact same thing. Sounds cool. Anybody knows of a debugger equivalent to ipdb (python) / pry (ruby) for php to allow live debugging stuff on the server?
- itry 13y agoYou can live-debug with xdebug. Have been using it with vim and it worked.
- gingerlime 13y agoI'll take a look. Thanks.
- MrUnderhill 13y agoSeconded. xdebug and the vim plugin "vdebug" ( https://github.com/joonty/vdebug https://github.com/joonty/vdebug ) work like a charm.
- porker 13y agoIt looks like a great replacement for Facebook's unmaintained phpsh [1] (written ironically in Python). In a similar vein to @gingerlime, anyone know a PHP mode for IPython [2]? It'd be great to prototype my code in a notebook. 1. http://phpsh.org/ http://phpsh.org/ 2. http://ipython.org/ http://ipython.org/