diff --git a/scriptengines/javascript/scriptenv.cpp b/scriptengines/javascript/scriptenv.cpp index fc15e21ef..3142588d0 100644 --- a/scriptengines/javascript/scriptenv.cpp +++ b/scriptengines/javascript/scriptenv.cpp @@ -43,7 +43,7 @@ ScriptEnv::ScriptEnv(QObject *parent) { QScriptValue global = globalObject(); global.setProperty("print", newFunction(ScriptEnv::print)); - global.setProperty("debug", newFunction(ScriptEnv::print)); + global.setProperty("debug", newFunction(ScriptEnv::debug)); } ScriptEnv::~ScriptEnv()