dodona-edu / dodona

🧑‍💻 Learn to code for secondary and higher education
https://dodona.be
MIT License
70 stars 23 forks source link

Resubmit code from debug-session #5807

Open pdawyndt opened 2 months ago

pdawyndt commented 2 months ago

Would be handy if students could resubmit their solution after having made changes from a debug session.

If the debugger is launched from a test case, students can stop the debug session in the built-in editor and make change to the code (to get rid of a bug). After they've done, there's no direct way to resubmit the solution from this edit-session: all students can do is copy-paste the edited solution back into Dodona. There's also a danger they may close the editor and loose their edited solution (= potential road to frustration).

bmesuere commented 1 month ago

Use local storage to store code between page loads. Possibly convert the existing "submit this code" implementation to also use local storage.