If you can't inspect it due to it freezing, I suggest trying to make it not freeze to begin with.
Slash dependencies and code until you get to a state that doesn't freeze. Then start adding dependencies and code back one at a time until it starts freezing again.
Narrow it down and you'll get it, eventually.