Skip to content

Commit

Permalink
Moved a bunch of logic out of debugger_interface such as the navigati…
Browse files Browse the repository at this point in the history
…ng/showing selected stack frame file/line. Toggle breakpoint etc. Generate sublime-commands and sublime-menu files. Adds run to cursor logic and command.
  • Loading branch information
daveleroy committed Sep 25, 2019
1 parent 47450e8 commit 47c7a5c
Show file tree
Hide file tree
Showing 29 changed files with 981 additions and 727 deletions.
185 changes: 118 additions & 67 deletions Commands/Commands.sublime-commands
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,69 +1,120 @@
[
{
"caption": "Preferences: Debugger Settings",
"command": "edit_settings",
"args": {
"base_file": "${packages}/Debugger/debugger.sublime-settings"
}
},
{
"caption" : "Debugger: Open in project",
"command" : "debugger_open"
},
{
"caption" : "Debugger: Refresh phantoms",
"command" : "debugger_refresh_phantoms"
},
{
"caption" : "Debugger: Quit",
"command" : "debugger_quit"
},
{
"caption" : "Debugger: Start",
"command" : "debugger_start"
},
{
"caption" : "Debugger: Stop",
"command" : "debugger_stop"
},
{
"caption" : "Debugger: Step Over",
"command" : "debugger_step_over"
},
{
"caption" : "Debugger: Step Out",
"command" : "debugger_step_out"
},
{
"caption" : "Debugger: Step In",
"command" : "debugger_step_in"
},
{
"caption" : "Debugger: Pause",
"command" : "debugger_pause"
},
{
"caption" : "Debugger: Resume",
"command" : "debugger_resume"
},
{
"caption" : "Debugger: Run Command",
"command" : "debugger_run_command"
},
{
"caption" : "Debugger: Toggle Breakpoint",
"command" : "debugger_toggle_breakpoint"
},
{
"caption" : "Debugger: Configurations",
"command" : "debugger_change_configuration"
},
{
"caption" : "Debugger: Install Adapters",
"command" : "debugger_install_adapter"
},
{
"caption" : "_",
"command" : "debugger_input"
},
{
"command": "edit_settings",
"args": {
"base_file": "${packages}/Debugger/debugger.sublime-settings"
},
"caption": "Preferences: Debugger Settings"
},
{
"command": "debugger",
"args": {
"action": "open"
},
"caption": "Debugger: Open"
},
{
"command": "debugger",
"args": {
"action": "quit"
},
"caption": "Debugger: Quit"
},
{
"id": "debugger",
"caption": "-"
},
{
"command": "debugger",
"args": {
"action": "install_adapters"
},
"caption": "Debugger: Install Adapters"
},
{
"command": "debugger",
"args": {
"action": "change_configuration"
},
"caption": "Debugger: Change Configuration"
},
{
"id": "debugger",
"caption": "-"
},
{
"command": "debugger",
"args": {
"action": "start"
},
"caption": "Debugger: Start"
},
{
"command": "debugger",
"args": {
"action": "stop"
},
"caption": "Debugger: Stop"
},
{
"id": "debugger",
"caption": "-"
},
{
"command": "debugger",
"args": {
"action": "pause"
},
"caption": "Debugger: Pause"
},
{
"command": "debugger",
"args": {
"action": "continue"
},
"caption": "Debugger: Continue"
},
{
"command": "debugger",
"args": {
"action": "step_over"
},
"caption": "Debugger: Step Over"
},
{
"command": "debugger",
"args": {
"action": "step_in"
},
"caption": "Debugger: Step In"
},
{
"command": "debugger",
"args": {
"action": "step_out"
},
"caption": "Debugger: Step Out"
},
{
"command": "debugger",
"args": {
"action": "run_command"
},
"caption": "Debugger: Run Command"
},
{
"id": "debugger",
"caption": "-"
},
{
"command": "debugger",
"args": {
"action": "refresh_phantoms"
},
"caption": "Debugger: Refresh Phantoms"
},
{
"command": "debugger_input",
"caption": "_"
}
]
28 changes: 22 additions & 6 deletions Commands/Context.sublime-menu
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
[
{ "caption": "-", "id": "debugger_start" },
{
"caption": "Toggle breakpoint",
"command": "debugger_toggle_breakpoint"
},
{ "caption": "-", "id": "debugger_end" }
{
"id": "debugger",
"caption": "-"
},
{
"command": "debugger",
"args": {
"action": "toggle_breakpoint"
},
"caption": "Toggle Breakpoint"
},
{
"command": "debugger",
"args": {
"action": "run_to_current_line"
},
"caption": "Run To Cursor"
},
{
"id": "debugger",
"caption": "-"
}
]
Loading

0 comments on commit 47c7a5c

Please sign in to comment.