Hi, I am a student at FEFU, Russia. And as a part of my course work
(you can see its code on
https://github.com/elvslv/CourseWork) I am
working on the debugger for the browser-embedded python. I have chosen
Skulpt as embedded python compiler.
The main problem for me -- I don't know how I can set breakpoints. I
think I should find a way that allows me to stop the execution of
generated code, wait the events from the user interface and continue
the execution.
I suppose, using multithreading technology is good way for resolving
this problem.
For example, web workers. But as I see in skulpt sources, generated
code is executed using eval(). And I didn't find a way, how to use
workers in eval(). Do you know how I can do it? May be generated code
should be executed in different way? Unfortunately I haven't any idea
how realize it.
The second idea -- each time get the next command from skulpt and
execute commands one-by-one. I suppose it's more difficult than first
way, but I'm sure that it's possible to realize. Have you any idea how
I can get from skulpt the next executing command?