python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Why is the python debugger throwing a ValueError before reaching my script?
When I try to debug a python script in the Spyder IDE using an exception is raised long before the debugger gets to my script. In spyderpdb.py near line 765 I get a ValueError reported. The full tra...
RHP
Votes: 0
Answers: 1
Difference between import pdb at the beginning and import pdb; pdb.set_trace()
I usually put the line
import pdb
on top of my program code, along with other imports. For debugging, I then only have to type pdb.set_trace() in the spot where I want the program to halt. The initia...
NerdOnTour
Votes: 0
Answers: 1
How to debug python code running inside exec()
I'm trying to debug a plugin code that I'm running inside exec command
is there a way to debug it somehow?
for example:
code='''
breakpoint()
foo=5
print(foo)
'''
exec(code)
I want to stop before foo...
Dor marcus
Votes: 0
Answers: 2