switch from hardcoded strings to localizable things
add /commands, and /cont commands
This commit is contained in:
rginda%netscape.com 2001-04-24 00:44:30 +00:00
Родитель ea46744dd9
Коммит 7682a19921
1 изменённых файлов: 8 добавлений и 25 удалений

Просмотреть файл

@ -43,31 +43,14 @@ function initCommands(commandObject)
console._commands.add (name, func, usage, help);
}
add ("eval", "onInputEval", "<script>",
"Evaluates <script> as JavaScript, in the debugger's context.");
add ("frame", "onInputFrame", "[<frame-number>]",
"Sets the current frame to the one numbered <frame-number>, and " +
"displays a summary of the frame. If <frame-number> is not " +
"provided, a summary of the current frame will be displayed. " +
"Use the /where command to list available frames and frame numbers.");
add ("help", "onInputHelp", "[<command>]",
"Displays help on <command>, which can be a full command name, or " +
"the first few characters of the command name. If <command> matches " +
"more than one command, help on all matching commands will be" +
"displayed.");
add ("scope", "onInputScope", "",
"Lists the properties part of the topmost object in the scope chain " +
"for the current frame.");
add ("where", "onInputWhere", "",
"Displays a summarized list of stack frames in the current " +
"call chain.");
add ("quit", "onInputQuit", "",
"Close this window.");
add (CMD_CMDS, "onInputCommands", CMD_CMDS_PARAMS, CMD_CMDS_HELP);
add (CMD_CONT, "onInputCont", CMD_CONT_PARAMS, CMD_CONT_HELP);
add (CMD_EVAL, "onInputEval", CMD_EVAL_PARAMS, CMD_EVAL_HELP);
add (CMD_FRAME, "onInputFrame", CMD_FRAME_PARAMS, CMD_FRAME_HELP);
add (CMD_HELP, "onInputHelp", CMD_HELP_PARAMS, CMD_HELP_HELP);
add (CMD_SCOPE, "onInputScope", CMD_SCOPE_PARAMS, CMD_SCOPE_HELP);
add (CMD_WHERE, "onInputWhere", CMD_WHERE_PARAMS, CMD_WHERE_HELP);
add (CMD_QUIT, "onInputQuit", CMD_QUIT_PARAMS, CMD_QUIT_HELP);
}