Skip to content

Commit

Permalink
Merge pull request #530 from ccordoba12/process-cmdqueue
Browse files Browse the repository at this point in the history
PR: Correctly process Pdb commands available in `cmdqueue`
  • Loading branch information
ccordoba12 authored Feb 5, 2025
2 parents fa90902 + 5b9a60d commit 6725970
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spyder_kernels/customize/spyderpdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,12 @@ def cmdloop(self, intro=None):
stop = None
while not stop:
if self.cmdqueue:
line = self.cmdqueue.pop(0)
# Anything available in cmdqueue is a Pdb command, so we need
# to process it as such.
# Fixes spyder-ide/spyder#22500
line = (
"!" if self.pdb_use_exclamation_mark else ""
) + self.cmdqueue.pop(0)
else:
try:
line = self.cmd_input(self.prompt)
Expand Down

0 comments on commit 6725970

Please sign in to comment.