Dump AST execution state in debug mode.

Refs #5878