General developer forum

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

 
Picture of Daniel Poggenpohl
[Moodle 3.2] Javascript files aren't loaded as separate files in the debugger
 
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: -
Tim at Lone Pine Koala Sanctuary
Re: [Moodle 3.2] Javascript files aren't loaded as separate files in the debugger
Core developersDocumentation writersParticularly helpful MoodlersPlugin 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.
 
Average of ratings: -