-
-
Save chriswl/5876844 to your computer and use it in GitHub Desktop.
Revisions
-
chriswl revised this gist
Jun 27, 2013 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ - [ ] show list of breakpoints as a dropdown command - [ ] show current breakpoints in the gutter - [ ] find a way to synchronize breakpoints across machines -
chriswl revised this gist
Jun 27, 2013 . 1 changed file with 12 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,14 +4,18 @@ from os.path import exists from os.path import expanduser home = expanduser("~") PUDB_FILE = home + '/.config/pudb/saved-breakpoints' class AddBreakpointCommand (sublime_plugin.TextCommand): def run(self, edit): filename = self.view.file_name() if filename and exists(PUDB_FILE): with open(PUDB_FILE, 'a') as f: for selection in self.view.sel(): row, _ = self.view.rowcol(selection.begin()) breakpoint = "b %s:%d\n" % (filename, row + 1) f.write(breakpoint) -
Snegovikufa revised this gist
Jan 14, 2013 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ [ { "caption": "Breakpoint helper for pudb", "command": "add_breakpoint" } ] -
Snegovikufa revised this gist
Jan 14, 2013 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ [ { "command": "add_breakpoint", "caption": "Add pudb breakpoint" } ] -
Snegovikufa created this gist
Jan 14, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ #!/usr/bin/python import sublime import sublime_plugin from os.path import exists PUDB_FILE = '/home/snegovik/.config/pudb/saved-breakpoints' class AddBreakpointCommand (sublime_plugin.TextCommand): def run (self, edit): filename = self.view.file_name() if filename and exists (PUDB_FILE) : with open (PUDB_FILE, 'a') as f : for selection in self.view.sel () : row, _ = self.view.rowcol (selection.begin ()) breakpoint = "b %s:%d\n" % (filename, row+1) f.write (breakpoint)