-
Notifications
You must be signed in to change notification settings - Fork 436
Home
When an exception occurs, the Better Errors console is displayed. It shows the stack trace frames that are within the application, if there are any.
The stack trace frames are visible at the left, and the currently-selected frame is inspected on the right.
The lines of source code are shown syntax-highlighted.
By choosing a different frame on the left, you can inspect the state of the code at each level of execution.
You can switch between seeing only the frames within your application, and seeing all frames including those in external gems or libraries.
By scrolling down on the right side, you can see all local variables that exist in the selected frame.
In addition to local variables, session and request variables are listed.
You can inspect any variable and call methods available in the chosen frame.
At the top of the source code displayed, there is a link directly to the given file, which will open in your editor, even to the specific line.
If an exception is raised during a non-HTML request, for example using curl
, the exception is returned as text.
You can then open the manual console to inspect and work with the most recent exception.