Skip to content

Commit 5b9a60d

Browse files
committed
Debugger: Correctly process Pdb commands available in cmdqueue
1 parent fa90902 commit 5b9a60d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

spyder_kernels/customize/spyderpdb.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,12 @@ def cmdloop(self, intro=None):
687687
stop = None
688688
while not stop:
689689
if self.cmdqueue:
690-
line = self.cmdqueue.pop(0)
690+
# Anything available in cmdqueue is a Pdb command, so we need
691+
# to process it as such.
692+
# Fixes spyder-ide/spyder#22500
693+
line = (
694+
"!" if self.pdb_use_exclamation_mark else ""
695+
) + self.cmdqueue.pop(0)
691696
else:
692697
try:
693698
line = self.cmd_input(self.prompt)

0 commit comments

Comments
 (0)