Skip to content

Instantly share code, notes, and snippets.

@acrosby
Forked from kjordahl/pudb-add-breakpoint
Created October 1, 2013 15:02
Show Gist options
  • Save acrosby/6779882 to your computer and use it in GitHub Desktop.
Save acrosby/6779882 to your computer and use it in GitHub Desktop.
;; this location is "~/.pudb-bp" in older versions of pudb
(setq pudb-bp-file (expand-file-name "~/.config/pudb/saved-breakpoints"))
(defun pudb-add-breakpoint ()
(interactive)
(append-to-file
(concat "b " buffer-file-name ":"
(nth 1 (split-string (what-line))) "\n")
nil pudb-bp-file))
(define-key py-mode-map (kbd "C-c C-t") 'pudb-add-breakpoint)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment