Also any chance of extending debug so it can tell you at which module it has found a problem?
Perhaps on startup if debug mode is enabled it loads each module in order and does a check to make sure everything is valid before loading the next module instead of loading everything then checking which seems to be the case jus tnow, since if you enable a module in the mods menu and there's an error it will tell you what module has the error, will save new people a lot of time on setup, I spent hours figuring out which modules were having issues as I had to delete them one by one to find which one it was.
1/ That's not technically possible in the current architecture.
2/ Also, there are submods, which work only in combination with parent mods.
And unfortunately even "partial" mods, which don't work standalone, but work together with other "parts".
To find out (and fix) issues you can enable mods one by one, instead of enabling everything and then guessing what's wrong where.
That should reduce the time to fix it from hours to minutes.
At least it does for me.