i want track error in my javascript code.Some times javascript automatically executes and hangs my browser i want to track which part of javascript is executing automatically and hangs ....
Asked
Active
Viewed 94 times
1
-
4Use any javascript debugger: FF firebug, chrome developer tools, ... – zerkms Jul 16 '12 at 07:06
-
... for example the JavaScript Console in Chrome or FireBug for Firefox – Alvin Wong Jul 16 '12 at 07:06
-
thax for reply.. but whenever page is going hang javascript console not showing any thing... – Anudeep GI Jul 16 '12 at 07:11
-
2it may be best for us to see your code... – Mike Sav Jul 16 '12 at 07:12
-
1Put many `console.log` in suspicious parts of your code. Then look at console and you will be able to tell when JavaScript hangs. – freakish Jul 16 '12 at 07:14
1 Answers
0
For tracking errors using console.log
Or use an alert as your first line of code with the variable's inside it and this should help,
I would recommend console.log as alerts become annoying, Console log also makes it easier to view variables, objects and arrays. I personally use chrome you should try it :)
This might also help Console log question