/bigredbutton.js

make it easy to generate error reports in javascript

Primary LanguageJavaScriptMIT LicenseMIT

BigRedButton.js

BigRedButton.js provides a simple way to produce error reports from your web applications.

Show Don't Tell

How To Install It

You can install it via script tag

<script src='bigredbutton.js'></script>

Or you can install with bower, as you wish.

bower install bigredbutton

How To Use It

bigredbutton.creator.js

var reportBuild	= new BigRedButton.Builder()
reportBuild.console.start()

then the report is in reportBuild.report. If you want to store that on your server, you may POST it in json, or similar.

bigredbutton.console.js

It logs each calls of console API, thus you can study it later. It indirect usual calls like console.log and co, console.assert()

bigredbutton.javascripterror.js

It logs when javascript errors occur by using window.onerror.

bigredbutton.screenshots.js

It logs screenshots you may do from your canvas. It is very useful while developing games.

bigredbutton.performanceAPI.js

It logs the performances API.

  • NOTE: it isnt clear yet how to handle it in various browser

bigredbutton.useragent.js

It logs the useragent of the brower it is running on.

bigredbutton.userdata.js

It is a free for all zone. You can put in there whatever you want. It is for you, the user, to put your own data. It will be converted to JSON when the report is produced

bigredbutton.webaudio.js

It logs the webaudio api capability of the browser.

bigredbutton.webgl.js

It logs the webgl capability of the browser.

Limitations

Currently it is running in modern browsers. node.js will be supported in the future.