From 4f06346470fc410e40d6d48b1a9e631016f29462 Mon Sep 17 00:00:00 2001 From: Quentin Peter Date: Fri, 4 Oct 2024 06:49:15 -0400 Subject: [PATCH] handle internal commands --- spyder_kernels/customize/spyderpdb.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spyder_kernels/customize/spyderpdb.py b/spyder_kernels/customize/spyderpdb.py index a522afa5..e052f894 100755 --- a/spyder_kernels/customize/spyderpdb.py +++ b/spyder_kernels/customize/spyderpdb.py @@ -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