I have an application using Backbone.js and requirejs. I'm seeing some incredibly weird behavior where a library, after being properly loaded from the path provided in the requirejs config, fails on load to a totally random path as a dependency of a file that doesn't even list it as a requirement (using CommonJS syntax), or as far as I can tell have that dependency in any of it's dependencies.
In order to debug this problem, I'd like to print at runtime, or step through using the debugger at runtime, what's causing what to load in requirejs. How can I do this?