Skip to content

Show name of currently executing function in the robot panel #2133

Open
@kostmo

Description

@kostmo

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

No one assigned

    Labels

    C-ProjectA larger project, more suitable for experienced contributors.G-CESK machineThis 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.T-DebuggingInvolves the debugger + related toolsT-UIInvolves the user interface.Z-FeatureA new feature to be added to the game.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions