Skip to content

Commit

Permalink
add docs for DEBUG=express*
Browse files Browse the repository at this point in the history
closes #29
  • Loading branch information
defunctzombie committed Dec 10, 2013
1 parent 0fe7cf0 commit f1bcc74
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
24 changes: 24 additions & 0 deletions en/guide/debugging-express.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
section
h3(id='debugging-express') Debugging Express

p.
Express uses the <a href="https://github.com/visionmedia/debug">debug</a> module
internally to log information about route matches and application mode.
To see this information, simply set the <code>DEBUG</code> environment variable to
<code>express:*</code> when launching your app and the debug information will
appear on the console.

+shell.
$ DEBUG=express:* node app.js

p.
Running this on the <code>hello world</code> example would print the following

+shell.
express:application booting in development mode +0ms
express:router defined get /hello.txt +0ms
express:router defined get /hello.txt +1ms

p.
For more documentation on <code>debug</code>, see the <a href="https://github.com/visionmedia/debug">debug guide</a>

3 changes: 2 additions & 1 deletion en/guide/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ include intro
include executable
include error-handling
include users-online
include proxies
include proxies
include debugging-express
1 change: 1 addition & 0 deletions en/guide/menu.jade
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ ul#menu
li: a(href='#error-handling') Error handling
li: a(href='#users-online') Users online count
li: a(href='#proxies') Express behind proxies
li: a(href='#debugging-express') Debugging Express
7 changes: 6 additions & 1 deletion includes/mixins.jade
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ mixin js
code
block

mixin shell
pre.sh
code
block

mixin logo(name)
li
img(src='/images/apps/logos/#{name}.png')
img(src='/images/apps/logos/#{name}.png')

0 comments on commit f1bcc74

Please sign in to comment.