Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modified functionality for console.log, console.debug. Added script and line information. Added functions console.warn and console.error. Change-Id: Id9f4dce5658a09b00522f8e087caf8f4242f418a Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
- Loading branch information
Aurindam Jana
authored and
Qt by Nokia
committed
Nov 11, 2011
1 parent
3346a77
commit a7f5c93
Showing
10 changed files
with
164 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,30 @@ | ||
import QtQuick 2.0 | ||
|
||
QtObject { | ||
id: root | ||
Component.onCompleted: { | ||
var a = [1, 2] | ||
var b = {a: "hello", d: 1 } | ||
var c | ||
var d = 12 | ||
var e = function() { return 5;} | ||
var f = true | ||
var g = {toString: function() { throw new Error('toString'); }} | ||
|
||
|
||
console.log("completed", "ok") | ||
console.log("completed ok") | ||
console.debug("completed ok") | ||
console.warn("completed ok") | ||
console.error("completed ok") | ||
console.log(a) | ||
console.log(b) | ||
console.log(c) | ||
console.log(d) | ||
console.log(e) | ||
console.log(f) | ||
console.log(root) | ||
console.log(g) | ||
console.log(exception) //This has to be at the end | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters