Only eval script in debug mode for inspector
Log probable cause for event dispatching failure
Use Function.toString() and placeholders