[debugger] Fix help message
authorFedor Indutny <fedor.indutny@gmail.com>
Wed, 7 Sep 2011 14:42:41 +0000 (21:42 +0700)
committerFedor Indutny <fedor.indutny@gmail.com>
Thu, 8 Sep 2011 19:06:06 +0000 (02:06 +0700)
lib/_debugger.js

index c7ba428..59f5a7a 100644 (file)
@@ -567,18 +567,19 @@ Client.prototype.fullTrace = function(cb) {
 
 
 var commands = [
-  'backtrace',
-  'continue',
   'help',
-  'info breakpoints',
+  'run',
+  'restart',
+  'cont',
+  'next',
+  'step',
+  'out',
+  'repl',
+  'backtrace',
+  'breakpoints',
   'kill',
   'list',
-  'next',
-  'print',
-  'quit',
-  'run',
   'scripts',
-  'step',
   'version'
 ];
 
@@ -790,9 +791,7 @@ function leftPad(n) {
 
 // Print help message
 Interface.prototype.help = function() {
-  this.pause();
-  process.stdout.write(helpMessage);
-  this.resume();
+  console.log(helpMessage);
 };