osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Python3-3.7.3: cannot run pdb


On 07/06/2019 18:28, Rich Shepard wrote:
> On Fri, 7 Jun 2019, Peter Otten wrote:
> 
>> You need to fix all syntax errors before you can run the script, with or
>> without pdb.
> 
> Peter,
> 
> I thought the debugger would show me the location of the syntax error.

The syntax error causes Python to halt before it has finished compiling 
your program into byte code.  There is nothing to run pdb on!

-- 
Rhodri James *-* Kynesim Ltd