https://github.com/elpete/whoops
Interactive debug for exceptions in ColdBox
https://github.com/elpete/whoops
cfml coldbox exception-handling
Last synced: 9 months ago
JSON representation
Interactive debug for exceptions in ColdBox
- Host: GitHub
- URL: https://github.com/elpete/whoops
- Owner: elpete
- License: mit
- Created: 2017-06-13T19:55:00.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-04-14T14:56:41.000Z (about 4 years ago)
- Last Synced: 2023-08-03T18:59:35.336Z (almost 3 years ago)
- Topics: cfml, coldbox, exception-handling
- Language: JavaScript
- Size: 359 KB
- Stars: 4
- Watchers: 2
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
README
# whoops
## A version of whoops is now included in ColdBox 6. All issues for the ColdBox 6 version of whoops should be reported to the ColdBox project. Additionally, whoops is in maintenance mode and intended just for ColdBox 5 and earlier projects.
## Interactive debugger for exceptions in CFML
Blatantly copied from https://filp.github.io/whoops/ (Thank you!)
### Install
```
box install whoops --saveDev
```
### Usage
The module will register itself as the `customErrorTemplate` regardless of the environment. For this reason, make sure you install whoops as a `devDependency`.
Alternatively, you can manually set your `coldbox.customErrorTemplate` to the path to `/whoops/views/whoops.cfm` from your application root.
```
coldbox.customErrorTemplate = "/modules/whoops/views/whoops.cfm";
```
You can open files in your editor directly from the Whoops template by setting a
`WHOOPS_EDITOR` environment variable. Here are the allowed values:
+ vscode
+ vscode-insiders
+ sublime
+ textmate
+ emacs
+ macvim
+ idea
+ atom
+ espresso
When setting a valid editor, an "Open" button will appear next to the active stacktrace pane.
If you'd like to add an editor, please open a Pull Request adding your editor's url scheme to the top of `views/whoops.cfm`.