I'm putting together an enterprise application using PHP and Yii. I want an easy way for the users to report a problem or bug if one occurs however I'm having a difficult time deciding the best way to capture/record the state of the system to help duplicate the problem.
I was looking for an extension or library that integrates everything but that might not exist. Otherwise I need to look for a way to serialize the DOM for later evaluation or some other method like that.
So the user can click the "Report Bug" button which captures the state of the site and brings up a pop-up box with a "what happened?" text box the user can fill in.
What are my options to do this?