CLI
CLI copied to clipboard
Use Craftsman as Debugger
Add the ability to use Craftsman as a debugger. Drop a line into a script whathever you’d like to have a breakpoint like:
<?php
eval(\Craftsman\Debug());
?>
When the script reaches this point, the execution will be suspended and it will be dropped into a PsySH shell. The program state is loaded and available to inspect and experiment with.