- Feb 10, 2014
-
-
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:
Kai Koehne <kai.koehne@digia.com>
-
- Feb 07, 2014
-
-
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:
Kai Koehne <kai.koehne@digia.com>
-
- Feb 05, 2014
-
-
Ulf Hermann authored
Let the debug server handle adding and removing of engines through defined interfaces to prepare for multi-engine profiling and debugging. Change-Id: I7b277e54bdcce1d3e95e723f041a7db6b08b29fc Reviewed-by:
Kai Koehne <kai.koehne@digia.com>
-
- Jan 30, 2014
-
-
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:
Simon Hausmann <simon.hausmann@digia.com>
-
- Jan 29, 2014
-
-
Ulf Hermann authored
There's no real reason to disallow that. The only thing we want to check there is that the registration doesn't take place in the debugger thread. Disallowing registrations from anywhere but the main GUI thread creates unnecessary problems with threaded QML profiling and debugging. Change-Id: Ic72d19237e2ddba02cc88f7f5a0743f6640fed4d Reviewed-by:
Simon Hausmann <simon.hausmann@digia.com>
-
- Nov 10, 2013
-
-
Erik Verbruggen authored
Currently missing, but coming in subsequent patches: - evaluating expressions - evaluating breakpoint conditions Change-Id: Ib43f2a3aaa252741ea7ce857a274480feb8741aa Reviewed-by:
Simon Hausmann <simon.hausmann@digia.com>
-
- Oct 16, 2013
-
-
Kai Koehne authored
Set QReadWriteLocker to recursive. This is needed e.g. to allow _q_changeServiceState to get a read lock when called from inside receiveMessage. Change-Id: I287a7c7f44e94005c0458825f8f6d1877ee914dd Reviewed-by:
Aurindam Jana <aurindam.jana@digia.com>
-
- May 24, 2013
-
-
Kai Koehne authored
So far we didn't protect this access. Change-Id: Id738453db5e655371fa2fbf88f81cab6c0af466f Reviewed-by:
Aurindam Jana <aurindam.jana@digia.com>
-
- Apr 23, 2013
-
-
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:
Aurindam Jana <aurindam.jana@digia.com>
-
- Apr 16, 2013
-
-
Aurindam Jana authored
Change-Id: Ibc0e5ed626edc076e96c4848994ba0cafba0f5c6 Reviewed-by:
Kai Koehne <kai.koehne@digia.com>
-
- Apr 02, 2013
-
-
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:
Kai Koehne <kai.koehne@digia.com>
-
- Jan 10, 2013
-
-
Sergio Ahumada authored
Change-Id: I6c3bd7bebe3d62d1cfd0fa6334544c9db8398c76 Reviewed-by:
Akseli Salovaara <akseli.salovaara@digia.com> Reviewed-by:
Sergio Ahumada <sergio.ahumada@digia.com>
-
- Sep 23, 2012
-
-
Iikka Eklund authored
Change copyrights and license headers from Nokia to Digia Change-Id: Ie7f5d49ed8235d7a7845ab68f99ad1c220e64d5c Reviewed-by:
Lars Knoll <lars.knoll@digia.com>
-
- May 14, 2012
-
-
Friedemann Kleint authored
- Fix warnings about truncation from size_t to int (MSVC 2010, 64bit). - Remove single character strings. Change-Id: Iaf4406e4e04d55d2d8b762f3433269868842a6f9 Reviewed-by:
Roberto Raggi <roberto.raggi@nokia.com>
-
- Apr 26, 2012
-
-
Aurindam Jana authored
Since the client and service needs to pack/unpack datastreams, they need to encode/decode using the lowest common QDataStream version. Change-Id: I3b4886fece59b24950ba618da07a0fefd41a5637 Reviewed-by:
Kai Koehne <kai.koehne@nokia.com>
-
- Apr 25, 2012
-
-
Kai Koehne authored
Using waitForMessage() in the constructor after registerService() is _not_ safe: You might get the first message already after the registerService() and before the waitForMessage() call. Instead, use QMutex/QWaitCondition to block the initialization. Also make the use of the block mode explicit, since the service might already be enabled also for non-blocking modes ... Change-Id: I387bfe0627c80e2029acff71f86d12cd9ab58de1 Reviewed-by:
Kai Koehne <kai.koehne@nokia.com>
-
Kai Koehne authored
Make sure that the first message hasn't already arrived before we call d->messageArrivedCondition.wait(). Change-Id: I0d3df9adbd41f71df5c1c7d6df90c0037f494514 Reviewed-by:
Kai Koehne <kai.koehne@nokia.com>
-
- Apr 24, 2012
-
-
Kai Koehne authored
Variables without a name are free to be deleted even before the scope ends. Change-Id: I07fb6f98cd5b36876db5de2e1b4e8ce355f74415 Reviewed-by:
Aurindam Jana <aurindam.jana@nokia.com>
-
Kai Koehne authored
Change-Id: I7c377863eb42e693aa4022af33a83098547e0d58 Reviewed-by:
Aurindam Jana <aurindam.jana@nokia.com>
-
Kai Koehne authored
Make sure stateAboutToBeChanged(), stateChanged() is always called from the debugger thread. This matches how messageReceived() is called. On exit, run an event loop until all stateAboutToBeChanged calls have returned. Change-Id: I9cd6199cc80552ad97e4b7d504ea91aa116a6a34 Reviewed-by:
Aurindam Jana <aurindam.jana@nokia.com>
-
- Apr 10, 2012
-
-
Aurindam Jana authored
Change-Id: I118a7b9de886c712027c55c38be99f615aea6902 Reviewed-by:
Roberto Raggi <roberto.raggi@nokia.com>
-
- Mar 30, 2012
-
-
Kai Koehne authored
QT_DECLARATIVE_DEBUG will be removed as soon as qtbase is updated. Change-Id: I9dbfe95b8bcb3bf1502319a040a758389b6977a2 Reviewed-by:
Aurindam Jana <aurindam.jana@nokia.com>
-
Simjees Abraham authored
Irrelevant debug statement which gets printed at start of debug session is removed. The same is removed in Auto-tests as well. Change-Id: If8f44950952f08b55ff884c1fe42670108e2369d Reviewed-by:
Kai Koehne <kai.koehne@nokia.com>
-
- Mar 19, 2012
-
-
Simjees Abraham authored
Change-Id: I5bb2e48e2ad2019b8a92f6f8842b88027fcd2d28 Reviewed-by:
Kai Koehne <kai.koehne@nokia.com>
-
- Mar 14, 2012
-
-
Kai Koehne authored
This allows users to use QT_FATAL_WARNINGS. Change-Id: I114825764c841030418c956d23575159157dfd69 Reviewed-by:
Roberto Raggi <roberto.raggi@nokia.com>
-
- Mar 13, 2012
-
-
Kai Koehne authored
Change-Id: I5c33113783834ef0c7292f5f19f12d8c68f42141 Reviewed-by:
Aurindam Jana <aurindam.jana@nokia.com>
-
- Mar 07, 2012
-
-
Kai Koehne authored
Since we've been changing from QtDeclarativeDebugServer to QQmlDebugServer anyway, we might as well change it to the more readable "QML Debugger:" prefix. Change-Id: I852577233d7cdb1f57adc43ec1b85a14d212574d Reviewed-by:
Aurindam Jana <aurindam.jana@nokia.com>
-
Aurindam Jana authored
Revert the names of the services changed in b855240b to maintain BC. Change-Id: I79826d92fd09c41e0020541b0c7bb77b5b2ecb1f Reviewed-by:
Kai Koehne <kai.koehne@nokia.com>
-
- Feb 24, 2012
-
-
Matthew Vogt authored
Symbols beginning with QDeclarative are already exported by the quick1 module. Users can apply the bin/rename-qtdeclarative-symbols.sh script to modify client code using the previous names of the renamed symbols. Task-number: QTBUG-23737 Change-Id: Ifaa482663767634931e8711a8e9bf6e404859e66 Reviewed-by:
Martin Jones <martin.jones@nokia.com>
-
- Feb 10, 2012
-
-
Kai Koehne authored
Fix inconsistent naming e.g. in QtDeclarativeEngineDebug by always using 'state' instead of 'status'. This is in line with the other source code, which also seems to favor 'state'. Change-Id: I65a7a3bd0eb7dfffeb37b5f8dad15b0a4a78de70 Reviewed-by:
Aurindam Jana <aurindam.jana@nokia.com>
-
- Feb 09, 2012
-
-
Kai Koehne authored
Add a statusAboutToBeChanged virtual that allows services to send data e.g. on application exit. Change-Id: I28fa513ab2a12d6973c444aac3062d64a0957207 Reviewed-by:
Christiaan Janssen <christiaan.janssen@nokia.com>
-
- Jan 30, 2012
-
-
Jason McDonald authored
As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: If39bd256b0fa85eba17ea30f8ab87ea27d758908 Reviewed-by:
Rohan McGovern <rohan.mcgovern@nokia.com>
-
- Jan 23, 2012
-
-
Jason McDonald authored
Replace Nokia contact email address with Qt Project website. Change-Id: I6a730abc0c396fb545a48b2d6938abedac2e3f1c Reviewed-by:
Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by:
Alan Alpert <alan.alpert@nokia.com>
-
- Jan 05, 2012
-
-
Jason McDonald authored
Change-Id: I0a8d99909cac867dce72da70b1bbcb649989a51b Reviewed-by:
Rohan McGovern <rohan.mcgovern@nokia.com>
-
- Dec 21, 2011
-
-
Kai Koehne authored
We did call a flush() after every single packet, which was slowing down things especially for the QDeclarativeDebugTrace service. Change-Id: Idab074941a22364e154502eb12afa43b4dd33c22 Reviewed-by:
Aurindam Jana <aurindam.jana@nokia.com> Reviewed-by:
Christiaan Janssen <christiaan.janssen@nokia.com>
-
- Dec 20, 2011
-
-
Kai Koehne authored
We used to close the debugger thread when the last service was killed: This happened in the unloading of static global variables. Apparently this is too late on Windows, since the OS thread associated was already terminated. Instead, we now kill the instance when the QCoreApplication event loop is exiting. Change-Id: I12a46ab9e7ac64561c94c0cd0d88b78fbaf8554c Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by:
Aurindam Jana <aurindam.jana@nokia.com>
-
- Dec 16, 2011
-
-
Aurindam Jana authored
Send the version info of each plugin alongwith the plugin names to client. Change-Id: I223689b32cdc5b0c48a4f508330033352b427937 Reviewed-by:
Kai Koehne <kai.koehne@nokia.com>
-
- Nov 22, 2011
-
-
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:
Christiaan Janssen <christiaan.janssen@nokia.com>
-
- Nov 17, 2011
-
-
Aurindam Jana authored
Instantiate QPluginLoader on heap. Change-Id: I53a7cb669379d374e8b6f83fe998c0bb17fbce33 Reviewed-by:
Kai Koehne <kai.koehne@nokia.com>
-
- Nov 01, 2011
-
-
Kai Koehne authored
Print detailed information about plugin loading when QML_DEBUGGER_VERBOSE is set in the environment. Change-Id: I48b9df01948b2cd226969cfbc520801527ff5492 Reviewed-by:
Aurindam Jana <aurindam.jana@nokia.com>
-