diff --git a/doric-Qt/doric/engine/DoricNativeJSE.cpp b/doric-Qt/doric/engine/DoricNativeJSE.cpp index 0bb2bfc7..c2f643e1 100644 --- a/doric-Qt/doric/engine/DoricNativeJSE.cpp +++ b/doric-Qt/doric/engine/DoricNativeJSE.cpp @@ -58,11 +58,11 @@ QJSValue DoricNativeJSE::invokeObject(QString objectName, QString functionName, QJSValue result = function.call(args); if (result.isError()) { - qDebug() << "Uncaught exception at line" - << result.property("lineNumber").toInt() << ":" - << result.toString(); - QStringList stacktraces = result.property("stack").toString().split("\n"); qDebug() << "++++++++++++++++++++++++"; + qCritical() << "Uncaught exception at line" + << result.property("lineNumber").toInt() << ":" + << result.toString(); + QStringList stacktraces = result.property("stack").toString().split("\n"); foreach (QString stacktrace, stacktraces) { qDebug() << stacktrace; } qDebug() << "------------------------"; }