Changes between Version 9 and Version 10 of JavascriptDebugging
- Timestamp:
- Jan 14, 2013, 10:41:52 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
JavascriptDebugging
v9 v10 12 12 The JSDBGAPI isn't thread-safe and also our current implementation of ScriptInterfaces (which are basically abstractions of Spidermonkey) isn't thread-safe either. 13 13 As a general rule, all Javascript objects are tied to one ScriptInterface which represents one Javascript runtime and one Javascript context and can only be used in one thread. We do use multiple threads, but each of them only uses one ScriptInterface. 14 On major difficulty about implementing a debugger is not to violate these constraints.14 One major difficulty about implementing a debugger is not to violate these constraints. 15 15 16 16 The idea is that there's one CThreadDebugger class which is responsible for tracking hooks, callbacks, breakpoints and general state information for each of those ScriptInterfaces. The class CDebuggingServer manages multiple threads using multiple objects of CThreadDebugger.