numere-org / NumeRe

Framework for numerical computations, data analysis and visualisation
https://www.numere.org
GNU General Public License v3.0
20 stars 7 forks source link

Run from line/cursor command #38

Closed raphael-sys closed 1 year ago

raphael-sys commented 1 year ago

DESCRIPTION

What does your feature request improve on? Please describe. When debugging a certain section it would be very useful to be able to run the program from a certain starting point. Obviously this would only work for scripts and would add value to the script data type.

Describe the solution you'd like Besides the run command I would expect to see a run from cursor command. This could also be an option when right clicking in the code or a graphical option on the left side column where the line numbers are.

Additional context

(Do not write below this line)


DEVS' SECTION

ANALYSIS

This requires a set of changes:

IMPLEMENTATION STEPS

(see also our Wiki for implementation guidelines)

DOCUMENTATION STEPS

(see also our Wiki for further information)

PULL REQUEST

numeredev commented 1 year ago

If it is acceptable that the state is not correct, then this is a small and easy change. However, keeping the state correct, will be difficult and -- in fact -- not change anything.

raphael-sys commented 1 year ago

If by state you mean runtime variables, then no, I would not expect the state to be 'saved'. On the contrary I would expect that the user changes some things and the runs from some point in the script. This is also the reason why this could only work for scripts (and yes, only if the script was run up to the relevant point beforehand).