mardi 17 février 2015

How to drop into repl in node script


I've been reading through http://ift.tt/1aE6hDj , but unless I'm missing something, I'm not sure if you can start a script and when you hit a breakpoint drip into the repl. eg:



app.get('/', function(req, res) {

try {

var bucket = [];
var targets = require('url').parse(req.url);
console.log('this is the outside ',url);
//// break here and drop into repl ///
emitter.getTarget = function(url) {
var self = this;
console.log('this is the ',url);




Aucun commentaire:

Enregistrer un commentaire