Added mode to dump a plugin state file (debug).