blob: d457c0245f21f5ecb37ba8b1c2ef46958692053d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
..
---------------------------------------------------------------------------
Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
All rights reserved.
This work, unless otherwise expressly stated, is licensed under a
Creative Commons Attribution-ShareAlike 2.5.
The full license document is available from
http://creativecommons.org/licenses/by-sa/2.5/legalcode .
---------------------------------------------------------------------------
How to do logging and debugging in your Qt Quick application
===========================================================
You can use the ``console.log`` javascript function for printing debugging information to the console.
.. code-block:: js
import QtQuick 1.1
Rectangle {
width: 200; height: 200
MouseArea {
anchors.fill: parent
onClicked: console.log("clicked")
}
}
Further detailed information for debugging techniques and approaches can be in :qt:`Debugging QML<qdeclarativedebugging.html>` documentation.
|