zhuminjie / OpenSeesPy

OpenSeesPy versions, doc, and pip
Other
167 stars 66 forks source link

Debugging OpenSeesPy #95

Open siwalan opened 2 years ago

siwalan commented 2 years ago

Dear Dr. Zhu,

Is it possible to debug a code addition to OpenSeesPy? In Windows, for the TcL version, debugging seems straightforward. Visual Studio (VS) debugger will run a TcL interpreter that can be debugged directly. I am wondering if it possible to do the same with with the OpenSeesPy module in OpenSees.

mhscott commented 2 years ago

Try print statements (opserr). That might be easier :)

zhuminjie commented 2 years ago

I think you could. It'll be like debugging a dll library through VS debugger. Yes, sometimes, print is way easier.

siwalan commented 2 years ago

Thanks Dr. Zhu and Prof. Scott for the feedback, I would try to look a dll library debugger. I have googled some but I don't really think it would work because VS won't open a python prompt/interpreter.

I am also open other methods for debugging OpenSeesPy, either on Linux or other Windows IDE. I was wondering if other people has setup a debug workflow directly in their IDE.

print() is an alternative.. but sometimes line by line step is useful for me. Furthermore, compilation takes time @ my side...