You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background, in the VOLTTRON™ Office Hours - 4/28/2023 (https://www.youtube.com/watch?v=5caMIDeoieo&t=964s) (around: 15:00-20:00) it talks about debugging volttron using vscode. One scenario is when setting debug point at line 435 volttron/platform/main.py, it didn't go to the brakepoint. And the thread issue was mentioned. Could somebody elaborate on that?
The text was updated successfully, but these errors were encountered:
Is the launch.py file for this tutorial available somewhere? Especially what is the setup for listener-agent section (around 24:00)?
(edited) found the following screenshot at 26:07
kefeimo
changed the title
Question about debugging VOLTTRON
Question about debugging VOLTTRON (background for VOLTTRON™ Office Hours - 4/28/2023 (https://www.youtube.com/watch?v=5caMIDeoieo&t=964s))
Jan 6, 2024
kefeimo
changed the title
Question about debugging VOLTTRON (background for VOLTTRON™ Office Hours - 4/28/2023 (https://www.youtube.com/watch?v=5caMIDeoieo&t=964s))
Question about debugging VOLTTRON (background for VOLTTRON™ Office Hours - 4/28/2023)
Jan 6, 2024
I am going to assume you mean launch.json file as it is what vs code uses for launching code.. Debugging volttron.platform.main would require you to start the server in the debugger.
The thread issue is weird. Basically it has to do with the GEVENT_SUPPORT=True. That flag allows greenlets to be debugged and have them hit the break points, however it also has the side effect of "Normal threads" not be able to hit break points. At least that is the observed behavior. if you remove the GEVENT_SUPPORT then your normal threads will be able to be hit but your greenlets won't be able to be debugged. I don't think there is any other in-depth discovery of exactly why or how you could do both.
Background, in the VOLTTRON™ Office Hours - 4/28/2023 (https://www.youtube.com/watch?v=5caMIDeoieo&t=964s) (around: 15:00-20:00) it talks about debugging volttron using vscode. One scenario is when setting debug point at line 435 volttron/platform/main.py, it didn't go to the brakepoint. And the thread issue was mentioned. Could somebody elaborate on that?
The text was updated successfully, but these errors were encountered: