How to debug PYTHON.py before running script?
How to debug PYTHON.py before running script?
(OP)
Hi, is it possible to debug PYTHON.py before we go to ABAQUS running script?
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS Come Join Us!Are you an
Engineering professional? Join Eng-Tips Forums!
*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting GuidelinesJobs |
How to debug PYTHON.py before running script?
|
RE: How to debug PYTHON.py before running script?
I use Pythonwin, which provides a syntax checking feature. If the script does not pass this checking procedure will fail under CAE also. However, these checks do not take into account the ABAQUS Scripting Interface modules.
RE: How to debug PYTHON.py before running script?
RE: How to debug PYTHON.py before running script?
RE: How to debug PYTHON.py before running script?
you can place various print "message #i" statements within the script and run the whole script.
Thus, you can identify the code portion generating the error as the set of code lines between the last printed message and first not printed message. Through several iterations, you can identify exactly the line causing the error.
RE: How to debug PYTHON.py before running script?