CLI icon indicating copy to clipboard operation
CLI copied to clipboard

Use Craftsman as Debugger

Open david-sosa-valdes opened this issue 7 years ago • 0 comments

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.

david-sosa-valdes avatar Mar 27 '17 23:03 david-sosa-valdes