loop/cached Nodejs + AngularJS + Chrome

66 views
Skip to first unread message

Seth Hubert

unread,
Aug 17, 2014, 5:31:18 PM8/17/14
to nod...@googlegroups.com
I don't know if this problem is rooted in: Javascript, Chrome browser, AngularJS, or Nodejs
Please forgive me if it not NodeJS's fault :)
>>>
I made the mistake of using the Javascript alert() function in a loop of 25,000 steps, and have checked the "Prevent this page from creating additional dialogs" checkbox. 

Chrome will not quit processing the loop, even if I reboot the machine! 

I reboot 
Delete the loop and alert from my code 
Start Nodejs server 
Start Chrome and load my AngularJS webpage 

It is STILL in the loop of code that has been deleted AFTER reboot!!! 

Is NodeJS 'caching' the 'process' - I have no idea what to call the problem, or where it resides.

Anyone??

Floby

unread,
Aug 19, 2014, 6:12:12 AM8/19/14
to nod...@googlegroups.com
Chrome is the one caching your code.
Use private browsing, or delete your cache with Ctrl+Shift+Del.
You can also use Firefox.

Maximilian Brosnahan

unread,
Aug 19, 2014, 5:59:15 PM8/19/14
to nod...@googlegroups.com
Hi Seth,

Not really enough information to go on.

Might be able to redefine alert to throw an error. To do this you want to set a break point before any of the code runs and then run the below code from the console. After continuing you should see stack traces in the console.

window.alert = function(){ throw new Error('Fake alert');}


Hope that helps

Stefan Klein

unread,
Aug 20, 2014, 5:23:45 PM8/20/14
to nod...@googlegroups.com
2014-08-19 12:12 GMT+02:00 Floby <floren...@gmail.com>:
Chrome is the one caching your code.
Use private browsing, or delete your cache with Ctrl+Shift+Del

If you have developer tools open, you can also use longpress on reload page, a menu will appear  showing the option to delete the cache and reload.

Reply all
Reply to author
Forward
0 new messages