Skip to content

Commit

Permalink
Update elpy-shell.el
Browse files Browse the repository at this point in the history
  • Loading branch information
pweibert authored Jul 24, 2023
1 parent 212e39a commit 73c5a8d
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions elpy-shell.el
Original file line number Diff line number Diff line change
Expand Up @@ -1266,21 +1266,14 @@ With a prefix argument, ignore the existing breakpoints."
(if (string= major-mode "python-mode")
(progn
(dolist (breakpt (elpy-pdb--get-breakpoint-positions))
(setq buffer-breakpoint-lst (cons (list breakpt buffer-file-name) buffer-breakpoint-lst))
)
)
)
)
)
(setq buffer-breakpoint-lst (cons (list breakpt buffer-file-name) buffer-breakpoint-lst)))))))
(if (or arg (= 0 (length buffer-breakpoint-lst)))
(progn
(elpy-pdb--refresh-breakpoints '())
(elpy-pdb--start-pdb t))
(elpy-pdb--refresh-breakpoints buffer-breakpoint-lst)
(elpy-pdb--start-pdb)
(python-shell-send-string "continue")
)
)
(python-shell-send-string "continue")))
(elpy-shell-display-buffer)))

(defun elpy-pdb-break-at-point ()
Expand Down

0 comments on commit 73c5a8d

Please sign in to comment.