Debugger: Don't register v8 callback until client is attached
authorKai Koehne <kai.koehne@nokia.com>
Mon, 14 Nov 2011 11:01:04 +0000 (12:01 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 23 Nov 2011 12:22:23 +0000 (13:22 +0100)
commit625d0cfc269bed9fcf80046a66cdd419c092490a
treeed21686eb89e0db8a81b9f07d14aa67878bae8e3
parent32ee9e6484aa9f9bb29f3c368aaa5b1e8defa7a7
Debugger: Don't register v8 callback until client is attached

Registering the v8 debugger callback reportedly slows down
performance. Do this only if a client is really attached. When
attaching, request the already compiled scripts to make sure
breakpoint urls are properly adapted.

Change-Id: I9ff24b7ca53e13da06f70a9e5860bbd4b9aa0d99
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
src/declarative/debugger/qv8debugservice.cpp
src/declarative/debugger/qv8debugservice_p.h