Inject REPL into connect/express as middleware.
Middleware is loaded only in environment other than
Following is exported into REPL:
last_req-- last request object
last_res-- last response object
stop-- boolean. Set to true if you want "set breakpoint" in next request
next-- function. Call if you want to continue after
req-- current request object when stopped
res-- current response object when stopped
Module exports global function
REPL_EXPORT(name, value) which can be called anywhere.
Provided value is accesible by
name in REPL.
var express = ;var app = ;// ...app;// some routes...app;