If you're using the authoring tool then you need to select the 'Generate sourcemap' option in the configuration settings for your course.