Code Monkey home page Code Monkey logo

whoops's Introduction

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.

whoops's People

Contributors

bdw429s avatar daemach avatar elpete avatar gpickin avatar grantcopley avatar jclausen avatar scottsteinbeck avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

whoops's Issues

Coldbox breaking updates

FYI, starting at Coldbox 6.2.0-snapshot.... the following error will start to occur.


No matching function [PROCESSSTACKTRACE] found

\modules\whoops\views\whoops.cfm: line 276
\coldbox\system\Bootstrap.cfc: line 646
\coldbox\system\Bootstrap.cfc: line 395
\coldbox\system\Bootstrap.cfc: line 483
\Application.cfc: line 40

Now that whoops is in maintenance mode, but integrated into CB 6, I just thought maybe by leaving this information here people will find it useful to know that CB 6.1.0+1309 is the last working version for this module.

For documentation purposes by having this issue opened and then even if closed immediately, people can find it when trying to diagnose their error.

I really like the style of the full version ;)

ACF Compatibility

The whoops template is not ACF compatible due to the following syntax issues in the whoops.cfm file

  1. Closing comma with no additional keys in struct on line 78
  2. The use of var in scoping variables used in the template, which ACF does not allow outside of a function context

What is a devDependency?

I really like the template. But could sure use some code that I can copy/paste into relevant files... I did install using --saveDev maybe that's it? What does that do?

Most of your users (well me, anyway) may not be as experienced and well-read as you. This is your chance to show off your knowledge and gain wider adoption due to "it-just-works"-ness :)

Great template. One random error

Occasionally, on fwreinit, I get the following error on my dev box. Only restarting the server fixes this, then it works properly again. FWIW, I'm betting that the error is happening when running cfmigrations onAppInit()

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.