projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b593c9
)
[debugger] pause stdin on debugEval
author
Fedor Indutny
<fedor.indutny@gmail.com>
Thu, 8 Sep 2011 09:09:45 +0000
(16:09 +0700)
committer
Fedor Indutny
<fedor.indutny@gmail.com>
Thu, 8 Sep 2011 19:06:07 +0000
(
02:06
+0700)
lib/_debugger.js
patch
|
blob
|
history
diff --git
a/lib/_debugger.js
b/lib/_debugger.js
index
904021d
..
d0133d9
100644
(file)
--- a/
lib/_debugger.js
+++ b/
lib/_debugger.js
@@
-743,14
+743,17
@@
Interface.prototype.controlEval = function(code, context, filename, callback) {
};
Interface.prototype.debugEval = function(code, context, filename, callback) {
- var client = this.client;
+ var self = this,
+ client = this.client;
if (code === '.scope') {
client.reqScopes(callback);
return;
}
+ self.pause();
client.reqEval(code, function(res) {
+ self.resume();
if (!res.success) {
if (res.message) {
callback(res.message);