Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite loop in watch.js:64 #28

Closed
TheBox193 opened this issue Nov 13, 2014 · 1 comment
Closed

Infinite loop in watch.js:64 #28

TheBox193 opened this issue Nov 13, 2014 · 1 comment
Labels

Comments

@TheBox193
Copy link

I appear to be running into a similar issue to #14 , however I'm unsure how I can get more info for debugging to find the cause and possible solution. It appears to be related to views where I have a collection and have a model that stores pagination information, but beyond that I'm not sure what action in my code is causing it Backbone-Debugger to enter an infinite loop in watch.js:64. It doesn't seem I can open watch.js in Chrome dev tools to dig in further. Any tips on debugging Backbone-Debugger?

Uncaught TypeError: Cannot read property 'perpage' of undefined watch.js:64

@Maluen
Copy link
Owner

Maluen commented Nov 13, 2014

@TheBox193 as first thing you may want to look at some of the latest watchjs issues, especially the Infinite loop on pushing to array #67 one that seems to be similar to what you are experiencing. Not that there are lot of info on how to fix this on that page.

As second thing, would be very useful (or even needed) if you were able to create a minimal example that reproduces the bug, like how was did on #14.

As alternative / addition, would be also quite useful if you were able to share the application url (if any) so that I can look.

The problem you are experiencing seems to be related to the backend side of the extension, specifically to the injected script, as far as I know there is no easy way to retrieve this in the sources tab of the devtools, but you can add "debugger" statements into https://github.com/Maluen/Backbone-Debugger/blob/master/js/lib/watch.js or any other specific file you want to debug and should work just fine.

@Maluen Maluen added the bug label Nov 13, 2014
@Maluen Maluen closed this as completed Sep 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants