File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
[ ![ Build Status] ( https://travis-ci.org/matthisk/debug-error-middleware.svg?branch=master )] ( https://travis-ci.org/matthisk/stack-middleware )
4
4
5
- Apply this debug middleware to display context information in the response to a
6
- failed request.
5
+ Better context information for NodeJS Errors during development. The middleware
6
+ parses potential errors that occur during a request/response cycle and display
7
+ the stack trace plus additional context in the response.
8
+
9
+ Features:
10
+
11
+ * Stack traces + collapsable code (snippets)
12
+ * Sourcemaps
13
+ * Environment variables
14
+ * Request information
7
15
8
16
![ Example Page] ( https://raw.githubusercontent.com/matthisk/stack-middleware/master/assets/example.png )
9
17
@@ -16,7 +24,7 @@ Currently we support these two HTTP frameworks:
16
24
17
25
Never enable the DEBUG middleware in a production environment. This could result
18
26
in leaking sensitive information (e.g. ENV variables). The middleware throws an
19
- error if you try to load it when ` NODE_ENV ` is set to ` "production" ` .
27
+ error if you try to load it with ` NODE_ENV ` set to ` "production" ` .
20
28
21
29
** Express**
22
30
You can’t perform that action at this time.
0 commit comments