Interactive Workflow Extension

I recently had an idea for a side project: building an app/extension that can interactively follow simulations and visualise the live flow of code execution.
For this, I would need access to variables, datasets, and the function call stack during execution, ideally without interfering with the actual code execution.
However, I found that MATLAB's current architecture makes this difficult, as the entire application runs in a single thread and there are no publicly exposed APIs to access runtime variables without interrupting execution.
Can anyone suggest a possible workaround or an alternative approach to achieve this?
Suraj
Suraj about 4 hours ago
I dont know what you are asking for see there are basically 2 things.
before execution you can stp the simulation to rather information
Transform the source code to insert lightweight trace events at selected points: function entry/exit, assignments, loop iterations, and branch decisions. Send those events to your visualization interface.
Kenneth Davis
Kenneth Davis on 8 Oct 2026 at 19:33
I'm not entirely clear about what you want to do, but could this be done with MATLAB's debug functions:

Tags

No tags entered yet.