Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to debug PYTHON.py before running script?

Status
Not open for further replies.

Bigtree

Structural
Joined
Jan 30, 2006
Messages
65
Location
US
Hi, is it possible to debug PYTHON.py before we go to ABAQUS running script?
 
Partly.
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.
 
You can run just segments of it at a time pasted straight into the python prompt in CAE.
 
To identify run-time errors :

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top