Changes between Version 9 and Version 10 of JavascriptDebugging


Ignore:
Timestamp:
Jan 14, 2013, 10:41:52 PM (11 years ago)
Author:
Yves
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • JavascriptDebugging

    v9 v10  
    1212The JSDBGAPI isn't thread-safe and also our current implementation of ScriptInterfaces (which are basically abstractions of Spidermonkey) isn't thread-safe either.
    1313As 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.
     14One major difficulty about implementing a debugger is not to violate these constraints.
    1515
    1616The 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.