https://github.com/rollbar/script-error-demo
Demo showing how to cause a "Script error", and how to ignore with rollbar.js using checkIgnore
https://github.com/rollbar/script-error-demo
Last synced: 4 months ago
JSON representation
Demo showing how to cause a "Script error", and how to ignore with rollbar.js using checkIgnore
- Host: GitHub
- URL: https://github.com/rollbar/script-error-demo
- Owner: rollbar
- Created: 2017-11-28T19:15:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-06-15T20:44:32.000Z (almost 5 years ago)
- Last Synced: 2025-10-30T00:44:47.222Z (8 months ago)
- Language: HTML
- Size: 4.88 KB
- Stars: 0
- Watchers: 22
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Script error demo
How to use (instructions should work for OS X or Linux):
1. In your `/etc/hosts`, add an alias `otherdomain` for `127.0.0.1`. For example:
```
127.0.0.1 localhost otherdomain
```
2. Clone this repo
3. In `index.html`, replace POST_CLIENT_ITEM_ACCESS_TOKEN with your own post_client_item Rollbar access token
4. Open a terminal and cd into the directory where this repo is. Run `python -m SimpleHTTPServer 8080`
5. Open another terminal window and cd into the directory where this repo is. Run `python -m SimpleHTTPServer 8081`
6. In your browser, navigate to `http://localhost:8080`.
7. Click the buttons and watch what happens in the console.