Component script debugger
Component scripts are likely to get complex, so there needs to be a reasonable way to debug them. Currently there's just print()
going to stdout
, which isn't great.
Ideally there'd be a full graphical debugger with source code display and breakpoints and watches and stepping and so on. But that sounds really complex so maybe something simpler would be a more realistic idea.
The implementation should use https://developer.mozilla.org/en-US/docs/Tools/Debugger-API (and likely also https://wiki.mozilla.org/Remote_Debugging_Protocol)
The debugger should be able to pause execution. That means the thread running scripts will be paused inside its JS API calls, and the simulation will be in an inconsistent state. We could perhaps allow the engine to keep running (by using a reentrant game loop, or splitting the simulation into a secondary thread), but we'd need to be very careful since the engine isn't currently designed to do that. It might be better to implement the debugger as part of Atlas (which runs in its own independent thread), so it can communicate with an entirely paused engine, and also so it can use wxWidgets for the UI.
Change History
(18)
Owner: |
changed from Philip Taylor to Kenny Long
|
Status: |
new → assigned
|
Milestone: |
Backlog → Alpha 7
|
Milestone: |
Alpha 7 → Alpha 8
|
Milestone: |
Alpha 8 → Alpha 9
|
Priority: |
Should Have → Nice to Have
|
Owner: |
Kenny Long removed
|
Status: |
assigned → new
|
Milestone: |
Alpha 9 → Backlog
|
Milestone: |
Backlog → Alpha 13
|
Owner: |
set to Yves
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Description: |
modified (diff)
|
Milestone: |
Alpha 13 → Backlog
|
Priority: |
Nice to Have → Should Have
|
Resolution: |
fixed
|
Status: |
closed → reopened
|
Component: |
UI & Simulation → Simulation
|
Noticed on #jsapi IRC: