1. Feb 10, 2014
    • Ulf Hermann's avatar
      Unify initial waiting of debug services · 4cc230ad
      Ulf Hermann authored
      
      The debug services generally behave in one of two ways when initializing:
      Either they block the initializing thread until some configuration is
      passed over the network or they just go on. By introducing a generalized
      configurable debug service the various ways of waiting on initialization
      are cleaned up. The API defined for it also allows for engine-specific
      initialization.
      
      Change-Id: Id5685ef17d2a7eb1222629f7caa5ec53076d47b2
      Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
      4cc230ad
  2. Feb 07, 2014
    • Ulf Hermann's avatar
      Protect list of client plugins from concurrent access · 85bab8c8
      Ulf Hermann authored
      
      Previously the list of client plugins in the QQmlDebugServer could be
      accessed concurrently from receiveMessage() and addService() either
      when in non-blocking mode, or if the client uses service discovery or
      sends additional hello messages after the first one.
      
      Change-Id: I946243957184210d40ebca728143714c341b1226
      Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
      85bab8c8
  3. Feb 05, 2014
  4. Jan 30, 2014
    • Ulf Hermann's avatar
      Make the QML debug server thread safe · 539d5376
      Ulf Hermann authored
      
      Previously, if instance() was accessed concurrently we could run into
      various problems as the initialization wasn't synchronized. By putting
      most of the initialization into the constructor, wrapping it into a
      Q_GLOBAL_STATIC and discerning between accesses that need to wait for
      the initial "hello" packet and ones that don't the situation is
      improved.
      
      Change-Id: I182e8e6abf054b851ef7ea5f897d4a197a9da4bf
      Reviewed-by: default avatarSimon Hausmann <simon.hausmann@digia.com>
      539d5376
  5. Jan 29, 2014
  6. Nov 10, 2013
  7. Oct 16, 2013
  8. May 24, 2013
  9. Apr 23, 2013
    • Kai Koehne's avatar
      Debugger: fix race condition in block mode · a028d463
      Kai Koehne authored
      
      Make sure that the GUI thread & debugger thread actually sync on startup. So far
      the GUI thread would block forever in waitCondition.wait() if the debugger thread
      spawns & receives the HELLO before.
      
      Also remove unused code and rename variables to make their use more obvious.
      
      Change-Id: I8285e8860667496d491807e696535353d9f14dea
      Reviewed-by: default avatarAurindam Jana <aurindam.jana@digia.com>
      a028d463
  10. Apr 16, 2013
  11. Apr 02, 2013
    • Aurindam Jana's avatar
      Debugger: Accepts port range as arguments · f1559590
      Aurindam Jana authored
      
      Allow a port range to pass on command line, and try to listen on any of the
      ports in the range. (Re)using the ',' separator allows for backwards compatibility,
      that is, also Qt 4 will accept a -qmljsdebugger=port:1000,1010 argument, but
      will only try to listen on port 1000.
      
      Change-Id: Ic03fe20e4aee9ecdea86651f46f1df5cb19bd75c
      Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
      f1559590
  12. Jan 10, 2013
  13. Sep 23, 2012
  14. May 14, 2012
  15. Apr 26, 2012
  16. Apr 25, 2012
  17. Apr 24, 2012
  18. Apr 10, 2012
  19. Mar 30, 2012
  20. Mar 19, 2012
  21. Mar 14, 2012
  22. Mar 13, 2012
  23. Mar 07, 2012
  24. Feb 24, 2012
  25. Feb 10, 2012
  26. Feb 09, 2012
  27. Jan 30, 2012
  28. Jan 23, 2012
  29. Jan 05, 2012
  30. Dec 21, 2011
  31. Dec 20, 2011
  32. Dec 16, 2011
  33. Nov 22, 2011
    • Kai Koehne's avatar
      Debugger: Move server into it's own thread · 43e20d57
      Kai Koehne authored
      
      So far the debugger infrastructure was running in the GUI thread,
      which required e.g. nested event loops to implement blocking behavior.
      The server and networking code are now running in their own thread,
      while the services are still running in the main thread.
      
      Because v8 isn't thread safe, we're adding two new JSEngines + isolates
      to qv8debugservice: One to decode JSON messages in the debugger thread,
      and one in the GUI thread.
      
      Change-Id: I746f5e203968f7bcc510fb66118c88ef0fd0cd14
      Reviewed-by: default avatarChristiaan Janssen <christiaan.janssen@nokia.com>
      43e20d57
  34. Nov 17, 2011
  35. Nov 01, 2011