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?
Take a look at Airbrake (formerly known as Hoptoad) and its php notifier. By default they don't save full DOM code, but I think you can extend the notifier to do that.
To allow users to trigger reports you can use ajax plus a custom exception.
They have free plans and the setup is pretty easy to do.