Closed patrickwalton closed 2 weeks ago
I determined it was rwMotorTorque, because breakpoints before that line work and breakpoints after didn't.
I've also confirmed that it doesn't occur in other scenarios. For example, breakpoints in the CSS scenarios work anywhere.
I have found this issue exists in recorders for the following additional modules:
The recorders for the following modules seem to not have this issue:
Hi Patrick,
Have you made sure to compile Basilisk in debug mode prior to running the debugger ? Odd things may happen if one attempts to set breakpoints inside a C or C++ program that is compiled in release mode.
@bbercoviciUspace
Odd things may happen if one attempts to set breakpoints inside a program C or C++ that is compiled in release mode.
Are you referring to breakpoints in C/C++ code? I am only referring to breakpoints in the main Python script.
Does Basilisk need to be compiled in debug mode to support breakpoints in the main Python script? This still seems like undesirable behavior.
I'm experiencing the same issue.
Describe the bug
I'm attempting to debug a python script (no gdb process attached, no C or C++ debugging), but after calling .record()
on any type of OutMsg from a C-language FSW module, my python debugger no longer stops at breakpoints.
To reproduce:
rwMotorLog = rwMotorTorqueObj.rwMotorTorqueOutMsg.recorder(samplingTime)
Expected behavior: My debugger should stop at python breakpoints.
Additional Details
If I use the breakpoint()
python keyword after a .record()
call, the debugger will stop there. Thereafter the behavior changes with the IDE:
Using pycharm, if I step the script it just continues the process till end.
Using VSCode, if I step it runs like a normal debugger, stopping at breakpoints.
System information: OS: Ubuntu 22.04.3 Python version: 3.11
This is making debugging a very tedious process. Please let me know if this is something you've seen before! I can add more clarifying details if needed.
Describe the bug In scenarioAttitudeFeedbackRW.py, this line (539):
rwMotorLog = rwMotorTorqueConfig.rwMotorTorqueOutMsg.recorder(samplingTime)
disrupts debuggers, leading breakpoints past this line to never be reached.To reproduce Steps to reproduce the behavior:
Expected behavior In other example scenarios (such as scenarioTAM.py) I can set a breakpoint on
scSim.ExecuteSimulation()
and step into the simulation process to observe. I would expect that to work on scenarioAttitudeFeedbackRW.py, but it doesn't, because the breakpoint is never reached.Screenshots NA
Desktop (please complete the following information):
Additional context NA