diff --git a/lib/_debugger.js b/lib/_debugger.js index e87caf7c3cb..1c5ea6d35b8 100644 --- a/lib/_debugger.js +++ b/lib/_debugger.js @@ -750,18 +750,19 @@ Interface.prototype.debugEval = function(code, context, filename, callback) { self.pause(); client.reqEval(code, function(res) { - self.resume(); if (!res.success) { if (res.message) { callback(res.message); } else { callback(null); } + self.resume(); return; } client.mirrorObject(res.body, function(mirror) { callback(null, mirror); + self.resume(); }); }); };