Add a button that re-runs the error, but stores and displays the values of every variable within the code snippets.The code snippets will display all of those values within them, instead of variables, which can switch between.
Behind it scenes it would achieve this by copying the code, inject code into the copy to do the printing, and re-run using the altered code, to retrieve the values.
Temporary files could be used as a place for storing the copy.
A copy should always be altered, not the original, in case it goes horribly wrong.
some autoloader magic might allow injecting the copy into PHP
Add a button that re-runs the error, but stores and displays the values of every variable within the code snippets.The code snippets will display all of those values within them, instead of variables, which can switch between.
Behind it scenes it would achieve this by copying the code, inject code into the copy to do the printing, and re-run using the altered code, to retrieve the values.