Thank you for your reply. That's what I have, in my case f9 starts the debugger. The problem that I have is once the debugger starts it runs to the end of the python code. It needs to not go past the first line so that I can enter a pdb command.
The answer is to add "breakpoint()" where the debugger is to stop.
-- Regards, Phil