Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging OpenSeesPy #95

Open
siwalan opened this issue Jul 19, 2022 · 3 comments
Open

Debugging OpenSeesPy #95

siwalan opened this issue Jul 19, 2022 · 3 comments

Comments

@siwalan
Copy link
Contributor

siwalan commented Jul 19, 2022

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
Copy link
Collaborator

mhscott commented Jul 19, 2022

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

@zhuminjie
Copy link
Owner

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

@siwalan
Copy link
Contributor Author

siwalan commented Jul 21, 2022

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants