Debugging help: preInit event fires but init does not and there is no error

87 Views Asked by At

I'm trying to debug an issue where my fancytree integration fails to work. I have the same code working in other spots on my site, but in one case my tree does not load.

I've turned on debugLevel to 4 and have been looking for events to determine where the failure occurs. The event preInit fires as does nodeLoadChildren, but the event init does not fire.

I threw a few debugging lines in and it seems like tree.render() is where things are getting stuck. What else can I review to help me troubleshoot this?

1

There are 1 best solutions below

3
Patrick Hume On

have you tried adding the debugger call in you JS files where you think its bottling out

debugger;

This will force your browser to automatically pause at this break point where ever this line of code is, from there you can strep though your JS code, using firefox or chrome debugger, try adding watchs to and the console to run parts of your code, console.log is ok (i assume when you say debugging lines that's what you mean). Hope this helps