console functions
-
console.log isn't available when using the Qt JavaScript engine, that is the function I would have used instead of console.info if it was available.
-
console.log isn't available when using the Qt JavaScript engine, that is the function I would have used instead of console.info if it was available.
-
@LeLev said in console functions:
installExtensions
I already have this in my C++ engine:
clsScriptHelper::mspobjJSeng->installExtensions(QJSEngine::AllExtensions);
-
As pointed out by @LeLev , the link:
installExtensionsShows in the text that using:
QJSEngine::ConsoleExtensionShould give console.log, however I've passed:
QJSEngine::AllExtensionsAnd I do not get console.log, however console.info works.
Anyone ?
-
As pointed out by @LeLev , the link:
installExtensionsShows in the text that using:
QJSEngine::ConsoleExtensionShould give console.log, however I've passed:
QJSEngine::AllExtensionsAnd I do not get console.log, however console.info works.
Anyone ?
Hi
The docs talks about
CONFIG+=qml_debug
in .pro file.
Im not sure if its related to that. -
@mrjj, thank you, added that to pro file console.log now works. console.dir still doesn't.
@SPlatten said in console functions:
console.dir
Are you sure this is included?
I have not seen it mentioned in the docs. -
@mrjj , sorry I just assume that since console.log, console.info are part of the functions that are available in JavaScript when using Node.js that console.dir would also be present.
-
@mrjj , sorry I just assume that since console.log, console.info are part of the functions that are available in JavaScript when using Node.js that console.dir would also be present.