-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Labels
C-ProjectA larger project, more suitable for experienced contributors.A larger project, more suitable for experienced contributors.G-CESK machineThis issue has to do with the CESK machine (the Swarm language interpreter).This issue has to do with the CESK machine (the Swarm language interpreter).S-Nice to haveThe bug fix or feature would be nice but doesn't currently have much negative impact.The bug fix or feature would be nice but doesn't currently have much negative impact.T-DebuggingInvolves the debugger + related toolsInvolves the debugger + related toolsT-UIInvolves the user interface.Involves the user interface.Z-FeatureA new feature to be added to the game.A new feature to be added to the game.
Description
While developing a scenario, it would be useful for debugging to be able to see which function a system robot is currently "in" as it executes its program.
Sometimes to achieve this I have placed a say "function_name";
at the top of each function in a robot's program (i.e. "printf debugging") to accomplish this. But it would be nice to have an automatic mechanism.
I imagine it is feasible:
- At program parse time, annotate each
Term
with the closest "function definition" that contains it. - At runtime, inspect the top frame of the robot's
machine
and display the function name for the currently focused term in the F2 dialog.
Metadata
Metadata
Assignees
Labels
C-ProjectA larger project, more suitable for experienced contributors.A larger project, more suitable for experienced contributors.G-CESK machineThis issue has to do with the CESK machine (the Swarm language interpreter).This issue has to do with the CESK machine (the Swarm language interpreter).S-Nice to haveThe bug fix or feature would be nice but doesn't currently have much negative impact.The bug fix or feature would be nice but doesn't currently have much negative impact.T-DebuggingInvolves the debugger + related toolsInvolves the debugger + related toolsT-UIInvolves the user interface.Involves the user interface.Z-FeatureA new feature to be added to the game.A new feature to be added to the game.