简体   繁体   English

Moodle中的SCORM软件包-如何调试错误

[英]SCORM packages in Moodle - how to debug errors

I am trying to get SCORM packages to work correctly in my Moodle 2.7.11 site. 我试图在我的Moodle 2.7.11网站上使SCORM软件包正常工作。

I am getting a couple of different errors while using the SCORM, such as: 使用SCORM时遇到几个不同的错误,例如:

LMSSetValue Error: cmi.core.lesson_location to [page242.html] Not initialized.

- --

LMSSetValue Error: cmi.suspenddata to [----] Not initialized.

- --

Some of the persistent data was not able to be stored.

- --

LMSSetValue Error: cmi.core.lesson_status to [passed] Not initialized.

- --

LMSCommit Error: Not initialized.

I have tested the Scorm packages and verified that they work on ScormCloud (a scorm testing site). 我已经测试了Scorm软件包,并验证了它们在ScormCloud(一个scorm测试站点)上可以工作。

It seems like there must be some incompatibility between: i) The SCORM standard the The Scorm module was built for, ii) The jquery version, or iii) the SCORM version that this version of Moodle supports. 似乎之间必须存在一些不兼容性:i)构建Scorm模块的SCORM标准,ii)jQuery版本或iii)此Moodle版本支持的SCORM版本。

I have turned on the option for debugging Scorm modules (in Site Admin/plugins/activities/Scorm) but it doesn't seem to have any effect. 我已经打开了调试Scorm模块的选项(在Site Admin / plugins / activities / Scorm中),但似乎没有任何效果。 I'm not sure where these debug messages are sent. 我不确定这些调试消息的发送位置。 There are some Moodle docs for this but they don't tell you where to find the debug log, https://docs.moodle.org/28/en/SCORM_FAQ#Debugging . 有一些Moodle文档,但是它们没有告诉您在哪里找到调试日志, https://docs.moodle.org/28/en/SCORM_FAQ#Debugging

UPDATE: 更新:

Here is the debugging when I run one of the SCORM courses on SCORM cloud: 这是我在SCORM云上运行其中一门SCORM课程时的调试:

[17:21:56.925] Beginning prerequisites evaluation of activity CourseID -org
[17:21:56.925] Beginning prerequisites evaluation of activity CourseID -org
[17:21:56.925] Beginning prerequisites evaluation of activity I_A001
+ [17:22:00.197] LMSInitialize('') returned 'true' in 0.001 seconds
+ [17:22:00.198] LMSGetValue('cmi.core.lesson_status') returned 'not attempted' in 0.001 seconds
+ [17:22:00.199] LMSSetValue('cmi.core.lesson_status', 'incomplete') returned 'true' in 0.007 seconds
+ [17:22:00.206] LMSCommit('') returned 'true' in 0 seconds
  [17:22:00.355] Beginning prerequisites evaluation of activity CourseID -org
  [17:22:00.355] Beginning prerequisites evaluation of activity CourseID -org
  [17:22:00.355] Beginning prerequisites evaluation of activity I_A001
+ [17:22:00.731] LMSGetValue('cmi.core.lesson_location') returned '' in 0 seconds
+ [17:22:00.732] LMSSetValue('cmi.core.lesson_location', 'page44294.html') returned 'true' in 0.001 seconds
+ [17:22:08.411] LMSSetValue('cmi.core.lesson_location', 'page37662.html') returned 'true' in 0.004 seconds
+ [17:22:08.471] LMSGetValue('cmi.suspend_data') returned '' in 0 seconds
+ [17:22:08.471] LMSSetValue('cmi.suspend_data', ';~;Kunskapstest_Score=0;') returned 'true' in 0.001 seconds
+ [17:22:08.472] LMSGetValue('cmi.suspend_data') returned ';~;Kunskapstest_Score=0;' in 0 seconds
+ [17:22:08.472] LMSGetValue('cmi.suspend_data') returned ';~;Kunskapstest_Score=0;' in 0 seconds
+ [17:22:08.473] LMSSetValue('cmi.suspend_data', ';~;Kunskapstest_Prov_Score=0;Kunskapstest_Score=0;') returned 'true' in 0 seconds
+ [17:22:08.473] LMSGetValue('cmi.suspend_data') returned ';~;Kunskapstest_Prov_Score=0;Kunskapstest_Score=0;' in 0 seconds
+ [17:22:10.247] LMSGetValue('cmi.suspend_data') returned ';~;Kunskapstest_Prov_Score=0;Kunskapstest_Score=0;' in 0.001 seconds
+ [17:22:10.248] LMSSetValue('cmi.suspend_data', ';~;Kunskapstest_Score=0;Kunskapstest_Prov_Score=0;') returned 'true' in 0.001 seconds
+ [17:22:10.249] LMSGetValue('cmi.suspend_data') returned ';~;Kunskapstest_Score=0;Kunskapstest_Prov_Score=0;' in 0 seconds
+ [17:22:10.250] LMSGetValue('cmi.suspend_data') returned ';~;Kunskapstest_Score=0;Kunskapstest_Prov_Score=0;' in 0.001 seconds
+ [17:22:10.251] LMSSetValue('cmi.suspend_data', ';~;Kunskapstest_Prov_Score=0;Kunskapstest_Score=0;') returned 'true' in 0.001 seconds
+ [17:22:10.252] LMSGetValue('cmi.suspend_data') returned ';~;Kunskapstest_Prov_Score=0;Kunskapstest_Score=0;' in 0 seconds
+ [17:22:16.545] LMSSetValue('cmi.core.lesson_location', 'page41883.html') returned 'true' in 0.004 seconds
+ [17:22:17.573] LMSGetValue('cmi.suspend_data') returned ';~;Kunskapstest_Prov_Score=0;Kunskapstest_Score=0;' in 0.002 seconds
+ [17:22:17.576] LMSSetValue('cmi.suspend_data', ';~;Kunskapstest_Score=0;Kunskapstest_Prov_Score=0;') returned 'true' in 0.001 seconds
+ [17:22:17.577] LMSGetValue('cmi.suspend_data') returned ';~;Kunskapstest_Score=0;Kunskapstest_Prov_Score=0;' in 0 seconds
+ [17:22:17.578] LMSGetValue('cmi.suspend_data') returned ';~;Kunskapstest_Score=0;Kunskapstest_Prov_Score=0;' in 0 seconds
+ [17:22:17.579] LMSSetValue('cmi.suspend_data', ';~;Kunskapstest_Prov_Score=0;Kunskapstest_Score=0;') returned 'true' in 0.001 seconds
+ [17:22:17.580] LMSGetValue('cmi.suspend_data') returned ';~;Kunskapstest_Prov_Score=0;Kunskapstest_Score=0;' in 0 seconds
+ [17:22:17.582] LMSSetValue('cmi.core.score.raw', '0') returned 'true' in 0.002 seconds
+ [17:22:17.585] LMSCommit('') returned 'true' in 0 seconds
+ [17:22:17.616] LMSSetValue('cmi.core.lesson_status', 'failed') returned 'true' in 0.005 seconds
+ [17:22:17.622] LMSCommit('') returned 'true' in 0 seconds
    [17:22:17.736] Beginning prerequisites evaluation of activity CourseID -org
    [17:22:17.737] Beginning prerequisites evaluation of activity CourseID -org
    [17:22:17.737] Beginning prerequisites evaluation of activity I_A001
    [17:22:17.911] Beginning prerequisites evaluation of activity CourseID -org
    [17:22:17.911] Beginning prerequisites evaluation of activity CourseID -org
    [17:22:17.911] Beginning prerequisites evaluation of activity I_A001
+ [17:22:19.399] LMSSetValue('cmi.core.session_time', '00:00:19') returned 'true' in 0.001 seconds
+ [17:22:19.400] LMSCommit('') returned 'true' in 0 seconds
+ [17:22:20.174] LMSSetValue('cmi.core.lesson_location', 'page37991.html') returned 'true' in 0 seconds
+ [17:22:23.223] LMSGetValue('cmi.suspend_data') returned ';~;Kunskapstest_Prov_Score=0;Kunskapstest_Score=0;' in 0.002 seconds
+ [17:22:23.225] LMSSetValue('cmi.suspend_data', ';~;Kunskapstest_Score=0;Kunskapstest_Prov_Score=0;') returned 'true' in 0.003 seconds
+ [17:22:23.228] LMSGetValue('cmi.suspend_data') returned ';~;Kunskapstest_Score=0;Kunskapstest_Prov_Score=0;' in 0 seconds
+ [17:22:23.229] LMSGetValue('cmi.suspend_data') returned ';~;Kunskapstest_Score=0;Kunskapstest_Prov_Score=0;' in 0 seconds
+ [17:22:23.229] LMSSetValue('cmi.suspend_data', ';~;Kunskapstest_Prov_Score=0;Kunskapstest_Score=0;') returned 'true' in 0 seconds
+ [17:22:23.229] LMSGetValue('cmi.suspend_data') returned ';~;Kunskapstest_Prov_Score=0;Kunskapstest_Score=0;' in 0 seconds
+ [17:22:36.518] OverallSequencingProcess for SCORM 1.1 / SCORM 1.2 returned '' in 2.216 seconds
+ [17:22:36.574] LMSSetValue('cmi.core.session_time', '00:00:36') returned 'true' in 0.002 seconds
+ [17:22:36.576] LMSCommit('') returned 'true' in 0.001 seconds
+ [17:22:36.577] LMSFinish('') returned 'true' in 0.002 seconds
+ [17:22:36.578] Pre-evaluation of exit action
+ [17:22:38.735] OverallSequencingProcess for SCORM 1.1 / SCORM 1.2

This is how it came out when I ran it on SCORM cloud but I don't think that it always does this in this order. 当我在SCORM云上运行它时,结果就是这样,但是我不认为它总是按此顺序执行。 That's why I want to be able to debug within Moodle to find out what has gone wrong when an error appears. 这就是为什么我希望能够在Moodle中进行调试,以找出出现错误时出了什么问题。

Is this a multi-SCO course? 这是多SCO课程吗? I have seen this in some courses if it calls LMSFinish in a SCO, then never re-initializes when it launches the next SCO. 我在某些课程中已经看到过这一点,如果它在SCO中调用LMSFinish,然后在启动下一个SCO时就不会重新初始化。 The debug log from SCORM Cloud can definitely light a path for us here if you share it. 如果您共享SCORM Cloud的调试日志,肯定可以在这里为我们指明一条道路。

In order to share it here, you can take the course in the SCORM Cloud sandbox, then once you exit, scroll down to the debug section. 为了在这里共享它,您可以在SCORM Cloud沙盒中上课,然后退出,向下滚动到debug部分。 Click on the link for the session where you took the course, this should open the debug log...scroll all the way to the bottom of the log, there should be an URL you can copy and paste here to share. 单击您参加课程的会话的链接,这应该打开调试日志...一直滚动到日志底部,应该有一个URL,您可以在此处复制和粘贴以共享。

Thank you! 谢谢!

Joe

在课程启动的第二秒,moodle scorm调试信息应显示为弹出窗口,确保您的浏览器没有阻止窗口打开。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM