From 39c7ca056769ad0657cc67e38df14a14f4438fef Mon Sep 17 00:00:00 2001 From: petec Date: Mon, 7 Apr 2014 20:07:51 -0400 Subject: [PATCH] Fix spelling of "immediate" in various places --- README.md | 2 +- debug_command.py | 2 +- debugger/interfaces/debugger_model.py | 8 ++++---- debugger/ruby_imp/ruby_debugger.py | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 0ec0cbb..f185aa7 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ is to [install](#installation) Debugger plugin and press on ## Features * Local debugging Ruby and RoR applications. * Stepping up, down ,over and into while debugging (jumps and goto also available). -* Add watch expression and run immidiate code using the current program context. +* Add watch expression and run immediate code using the current program context. * Monitoring on stack, threads, output and local variables in the program. * Builtin rails support. * Breakpoints, conditional breakpoints and temporary breakpoints (goto) support. diff --git a/debug_command.py b/debug_command.py index 4ab9719..883f403 100644 --- a/debug_command.py +++ b/debug_command.py @@ -125,7 +125,7 @@ def on_input_entered(self, input_string): def on_expression_entered(self, expression): self.debugger.run_result_command(DebuggerModel.COMMAND_GET_EXPRESSION, expression, expression) - ViewHelper.move_to_front(self.window, self.debug_views[DebuggerModel.DATA_IMMIDIATE]) + ViewHelper.move_to_front(self.window, self.debug_views[DebuggerModel.DATA_IMMEDIATE]) def on_watch_entered(self, expression): self.debugger_model.add_watch(expression) diff --git a/debugger/interfaces/debugger_model.py b/debugger/interfaces/debugger_model.py index 91e9ab8..c3c139d 100644 --- a/debugger/interfaces/debugger_model.py +++ b/debugger/interfaces/debugger_model.py @@ -3,7 +3,7 @@ class DebuggerModel(object): # Debugging data types DATA_WATCH = "Watch" - DATA_IMMIDIATE = "Immidiate" + DATA_IMMEDIATE = "Immediate" DATA_OUTPUT = "Output" DATA_BREAKPOINTS = "Breakpoints" DATA_LOCALS = "Locals" @@ -48,7 +48,7 @@ class DebuggerModel(object): REFRESHABLE_COMMANDS = [COMMAND_GET_THREADS, COMMAND_GET_STACKTRACE, COMMAND_GET_LOCALS, COMMAND_GET_BREAKPOINTS] - APPENDABLE_DATA = [DATA_IMMIDIATE, DATA_OUTPUT] + APPENDABLE_DATA = [DATA_IMMEDIATE, DATA_OUTPUT] STARTERS_COMMANDS = [COMMAND_DEBUG_LAYOUT, COMMAND_RESET_LAYOUT, COMMAND_START_RAILS, COMMAND_START, COMMAND_START_CURRENT_FILE] COMMANDS = [COMMAND_DEBUG_LAYOUT, COMMAND_RESET_LAYOUT, COMMAND_START_RAILS, COMMAND_INTERRUPT, COMMAND_START_CURRENT_FILE, COMMAND_GO_TO, COMMAND_ADD_WATCH, COMMAND_GET_WATCH, COMMAND_START, COMMAND_STOP, COMMAND_SEND_INPUT, COMMAND_STEP_OVER, COMMAND_STEP_INTO, COMMAND_STEP_UP, COMMAND_STEP_DOWN, COMMAND_CONTINUTE, COMMAND_JUMP, COMMAND_GET_LOCATION, COMMAND_GET_STACKTRACE, COMMAND_GET_LOCALS, COMMAND_GET_THREADS, COMMAND_GET_EXPRESSION, COMMAND_GET_BREAKPOINTS, COMMAND_SET_BREAKPOINT, COMMAND_CLEAR_BREAKPOINTS] @@ -60,7 +60,7 @@ def __init__(self, debugger): self.debugger = debugger self.data = {} self.data[DebuggerModel.DATA_WATCH] = [] - self.data[DebuggerModel.DATA_IMMIDIATE] = "" + self.data[DebuggerModel.DATA_IMMEDIATE] = "" self.data[DebuggerModel.DATA_OUTPUT] = "" self.data[DebuggerModel.DATA_BREAKPOINTS] = "" self.data[DebuggerModel.DATA_LOCALS] = "" @@ -100,7 +100,7 @@ def update_data(self, data_type, new_value): if data_type == DebuggerModel.DATA_WATCH: self.update_watch_expression(new_value[0], new_value[1]) return self.watch_to_str(), line_to_show, should_append - elif data_type == DebuggerModel.DATA_IMMIDIATE: + elif data_type == DebuggerModel.DATA_IMMEDIATE: self.data[data_type] += new_value[0]+" => "+ new_value[1] + '\n' self.referesh_data() elif data_type in DebuggerModel.APPENDABLE_DATA: diff --git a/debugger/ruby_imp/ruby_debugger.py b/debugger/ruby_imp/ruby_debugger.py index 5753675..c29492d 100644 --- a/debugger/ruby_imp/ruby_debugger.py +++ b/debugger/ruby_imp/ruby_debugger.py @@ -18,7 +18,7 @@ class RubyDebugger(Debugger): DebuggerModel.COMMAND_GET_STACKTRACE:RubyDebugCommand("where", DebuggerModel.DATA_STACK, True), DebuggerModel.COMMAND_GET_LOCALS:RubyDebugCommand("info local", DebuggerModel.DATA_LOCALS, True), DebuggerModel.COMMAND_GET_THREADS:RubyDebugCommand("thread l", DebuggerModel.DATA_THREADS, True), - DebuggerModel.COMMAND_GET_EXPRESSION:RubyDebugCommand("eval", DebuggerModel.DATA_IMMIDIATE, True), + DebuggerModel.COMMAND_GET_EXPRESSION:RubyDebugCommand("eval", DebuggerModel.DATA_IMMEDIATE, True), DebuggerModel.COMMAND_GET_BREAKPOINTS:RubyDebugCommand("info break", DebuggerModel.DATA_BREAKPOINTS, True), DebuggerModel.COMMAND_SEND_INPUT:RubyCustomDebugCommand(lambda debugger_constroller, *args: debugger_constroller.send_input(*args)), @@ -26,7 +26,7 @@ class RubyDebugger(Debugger): DebuggerModel.COMMAND_STOP:RubyCustomDebugCommand(lambda debugger_constroller, *args: debugger_constroller.stop()), DebuggerModel.COMMAND_GET_WATCH:RubyCustomDebugCommand(lambda debugger_constroller, prefix, expression: debugger_constroller.send_with_result("eval " + expression, DebuggerModel.DATA_WATCH, prefix)), - DebuggerModel.COMMAND_GET_EXPRESSION:RubyCustomDebugCommand(lambda debugger_constroller, prefix, expression: debugger_constroller.send_with_result("eval " + expression, DebuggerModel.DATA_IMMIDIATE, prefix)), + DebuggerModel.COMMAND_GET_EXPRESSION:RubyCustomDebugCommand(lambda debugger_constroller, prefix, expression: debugger_constroller.send_with_result("eval " + expression, DebuggerModel.DATA_IMMEDIATE, prefix)), DebuggerModel.COMMAND_SET_BREAKPOINT:RubyCustomDebugCommand(lambda debugger_constroller, location: debugger_constroller.send_control_command("b " + location)), DebuggerModel.COMMAND_CLEAR_BREAKPOINTS:RubyCustomDebugCommand(lambda debugger_constroller: debugger_constroller.send_control_command("delete")),