-
Notifications
You must be signed in to change notification settings - Fork 266
Server mode
One big drawback of the static html report is that there is room only for a limited amount of interactions: resorting tables, expanding/collapsing items. However these changes are not even persistence.
In the long term our goal is to fit this tool nicely in the bug hunting process: Assume one developer starts analyzing a bugreport. He or she will look through the report, will filter the logs and will add some comments to the logs, like "Look here, audio stream was not created properly". He or she then hands over the bugreport to an expert in that area. The goal is that the new developer should be able to see the same filtered log and the same comments when running the tool again.
Due to technical reasons, this is not possible when generating static html files, which are opened by the browser directly. For this to work, we need a web server. That's why the latest version of ChkBugReport contains a tiny little web server integrated, which can be started with the --server command line argument. (You can use the --port: argument if you want to change the port number. Also it's a good idea to use the --browser argument to automatically launch the browser as well.)
When in server mode, the tool still creates the static html pages, and it will serve them to the browser. However now there are a few extra pages visible as well. For example under "System log", next to the "Log" chapter, there is now a "Log (editable)" chapter as well. This one is dynamically generated, and the user can filter the log and add comments to it.
NOTE: The extra changes are saved to a file next to the original bugreport file. If the original file was called "bugreport.txt", then all the changes will be saved to "bugreport.txt.dat". So in case you want to hand over the bugreport file to someone else, make sure you send this extra file as well. No need to send the generated output folder, that can always be rebuilt from the original file.
NOTE: The extra information (filtered log, comments) are visible ONLY when using the server mode. They are not part of the static html files.
NOTE: This feature is still experimental!
Currently the following extra features are available with server mode: