-
Notifications
You must be signed in to change notification settings - Fork 8
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
We should think about a way how to make debugging possible #81
Comments
yes, i'm wondering how the osbrain guys do it as well.. |
Steps to take then:
|
Apparently the guys at osbrain have not implemented how to attach a debugger yet. The way they handled it is described here: opensistemas-hub/osbrain#360 |
#113 would make this obsolete, right? We should first deal with the considerations regarding the backend change, before we keep thinking about this. |
i figured one way to do it with pycharm is via 'Attach a debugger to Process' via Ctrl+Shift+A however, since the processes have different names , we may not be able to tell which process belongs to which agent. some exploration is needed for a smoother debugging experience.. |
That sounds just like what I imagined. Maybe it would help to record the subprocesses name or id when spawning it. I originally hoped, that Python built-in pdb would offer this functionality. Several SE threads (e.g. this one) suggest it does not and I could not find anything in its documentation sounding differently. At least if PyCharm and probably other IDEs and debugging tools are able to allow for attaching to a running process, we might want to provide a tutorial how to make use of this. |
Because of the subprocesses we are spawning, in general debugging does not work as usual. We should think about, if it is possible to make that available. It would strip a lot of print statements from the codes we are seeing being written using the agents and make debugging a lot easier.
The text was updated successfully, but these errors were encountered: