[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

von Daniel Poggenpohl -
Anzahl Antworten: 1
Nutzerbild von 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.

Als Antwort auf Daniel Poggenpohl

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

von Tim Hunt -
Nutzerbild von Core developers Nutzerbild von Documentation writers Nutzerbild von Particularly helpful Moodlers Nutzerbild von Peer reviewers Nutzerbild von 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.