Skip to content

Commit

Permalink
handle internal commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Peter committed Oct 4, 2024
1 parent 783a684 commit 4f06346
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spyder_kernels/customize/spyderpdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,11 @@ def precmd(self, line):
if line[0] == '!':
line = line[1:]
else:
if line.startswith('_pdbcmd'):
# Internal pdb command, do not add '!'
command, arg, line = self.parseline(line)
if hasattr(self, command):
return line
line = '!' + line
return line

Expand Down

0 comments on commit 4f06346

Please sign in to comment.