-
bennetcole replied to the topic How to debug a python script in SOFA? in the forum Programming with SOFA 1 year, 5 months ago
Python has a debugger , which is available as a module called pdb . It supports setting conditional breakpoints , stepping through the source code one line at a time, stack inspection, and more.
import pdb
msg = "this is a test"
pdb.set_trace()
print(msg)Insert pdb.set_trace() anywhere and it will function as a breakpoint . When you execute…[Read more]
-
bennetcole became a registered member 1 year, 5 months ago