From 97593a573920156687c35abd7c6fccc68379e804 Mon Sep 17 00:00:00 2001 From: Tom Arnfeld Date: Mon, 21 Jan 2013 00:31:35 +0000 Subject: [PATCH] Cleaned up a few things and added support for context menus --- Context.sublime-menu | 12 ++++++++++++ Default (Linux).sublime-keymap | 7 ++++--- Default (OSX).sublime-keymap | 7 ++++--- Default (Windows).sublime-keymap | 7 ++++--- Xdebug.py | 1 - 5 files changed, 24 insertions(+), 10 deletions(-) create mode 100644 Context.sublime-menu diff --git a/Context.sublime-menu b/Context.sublime-menu new file mode 100644 index 0000000..597ec2d --- /dev/null +++ b/Context.sublime-menu @@ -0,0 +1,12 @@ +[ + { + "caption": "XDebug", + "children": [ + { "command": "xdebug_breakpoint", "caption": "Toggle Breakpoint", "args": {} }, + { "command": "xdebug_continue", "caption": "Run", "args": { "state": "run" } }, + { "command": "xdebug_continue", "caption": "Step Over", "args": { "state": "step_over" } }, + { "command": "xdebug_continue", "caption": "Step Into", "args": { "state": "step_into" } }, + { "command": "xdebug_continue", "caption": "Step Out", "args": { "state": "step_out" } } + ] + } +] diff --git a/Default (Linux).sublime-keymap b/Default (Linux).sublime-keymap index bfc1e98..4a8830f 100644 --- a/Default (Linux).sublime-keymap +++ b/Default (Linux).sublime-keymap @@ -1,7 +1,8 @@ [ - {"keys": ["shift+f8"], "command": "xdebug" }, - {"keys": ["f8"], "command": "xdebug_continue" }, - {"keys": ["ctrl+f8"], "command": "xdebug_breakpoint"}, + {"keys": ["shift+f8"], "command": "xdebug" }, + {"keys": ["f8"], "command": "xdebug_continue" }, + {"keys": ["ctrl+f8"], "command": "xdebug_breakpoint"}, + {"keys": ["ctrl+shift+f5"], "command": "xdebug_continue", "args": {"state": "run"}}, {"keys": ["ctrl+shift+f6"], "command": "xdebug_continue", "args": {"state": "step_over"}}, {"keys": ["ctrl+shift+f7"], "command": "xdebug_continue", "args": {"state": "step_into"}}, diff --git a/Default (OSX).sublime-keymap b/Default (OSX).sublime-keymap index bfc1e98..4a8830f 100644 --- a/Default (OSX).sublime-keymap +++ b/Default (OSX).sublime-keymap @@ -1,7 +1,8 @@ [ - {"keys": ["shift+f8"], "command": "xdebug" }, - {"keys": ["f8"], "command": "xdebug_continue" }, - {"keys": ["ctrl+f8"], "command": "xdebug_breakpoint"}, + {"keys": ["shift+f8"], "command": "xdebug" }, + {"keys": ["f8"], "command": "xdebug_continue" }, + {"keys": ["ctrl+f8"], "command": "xdebug_breakpoint"}, + {"keys": ["ctrl+shift+f5"], "command": "xdebug_continue", "args": {"state": "run"}}, {"keys": ["ctrl+shift+f6"], "command": "xdebug_continue", "args": {"state": "step_over"}}, {"keys": ["ctrl+shift+f7"], "command": "xdebug_continue", "args": {"state": "step_into"}}, diff --git a/Default (Windows).sublime-keymap b/Default (Windows).sublime-keymap index bfc1e98..4a8830f 100644 --- a/Default (Windows).sublime-keymap +++ b/Default (Windows).sublime-keymap @@ -1,7 +1,8 @@ [ - {"keys": ["shift+f8"], "command": "xdebug" }, - {"keys": ["f8"], "command": "xdebug_continue" }, - {"keys": ["ctrl+f8"], "command": "xdebug_breakpoint"}, + {"keys": ["shift+f8"], "command": "xdebug" }, + {"keys": ["f8"], "command": "xdebug_continue" }, + {"keys": ["ctrl+f8"], "command": "xdebug_breakpoint"}, + {"keys": ["ctrl+shift+f5"], "command": "xdebug_continue", "args": {"state": "run"}}, {"keys": ["ctrl+shift+f6"], "command": "xdebug_continue", "args": {"state": "step_over"}}, {"keys": ["ctrl+shift+f7"], "command": "xdebug_continue", "args": {"state": "step_into"}}, diff --git a/Xdebug.py b/Xdebug.py index 5bf9fe8..07cb087 100644 --- a/Xdebug.py +++ b/Xdebug.py @@ -5,7 +5,6 @@ import base64 import threading import types -import json import webbrowser from xml.dom.minidom import parseString