[Moodle 3.2] Javascript files aren't loaded as separate files in the debugger

[Moodle 3.2] Javascript files aren't loaded as separate files in the debugger

by Daniel Poggenpohl -
Number of replies: 1
Picture of Core developers
Hi everyone,

We're currently in the process of upgrading from 2.8 to 3.2. I understand RequireJS was added in 2.9.

Javascript Files seem to be added to the page by concatenating them to the module "first.js".
Is there a way to have modules separately loaded?


Debugging is not very fun with a huge js file.

Regards,

Daniel P.

Average of ratings: -
In reply to Daniel Poggenpohl

Re: [Moodle 3.2] Javascript files aren't loaded as separate files in the debugger

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I have not been finding this a problem. In your browser developer tools (I mostly use Firefox, sometime Chrome) you just need to use the search (e.g. for a key method name) to find your code in the long file. Once you are there, it is not a problem to set break-points, step through the code, etc.