Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Best Practice in JavaScript Debugging

 
Dave Hayward
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Everyone,

I have found that most of my time is spent in trying to debug JavaScript to work cross-browser. I am limited to the "Alert" method of debugging, and I really want to know if there is a better way to debug JavaScript. I focus on IE, Firefox, and Chrome browsers. So a cross-browser tool would be fantastic, but I'll take what I can get.

Thanks a ton,
Einstein47
 
Eric Pascarello
author
Rancher
Posts: 15385
6
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64985
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you limited to alerts, which are the worst debugging "tool" possible? All modern browsers have built-in JavaScript debuggers (Firebug for Firefox).
 
Dave Hayward
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The reason I am "limited" is because when I taught myself JavaScript back in the late '90s - it was the only option. I have not stayed on top of all the changes in technology (my own fault, you get busy and need to choose what to focus your time on). And now I am getting back into JavaScript editing (mostly to help co-workers), and I wasn't aware of all these great tools.

Thank you very much for your helpful posts.
Einstein47
 
Ido Green
author
Greenhorn
Posts: 25
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would recommend you to watch some of the great videos/tutorial that Paul Irish made on Chrome Dev Tools: http://paulirish.com/?s=devtools
so many powerful tips you can leverage later... ;)
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64985
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do most of my development in Chrome/Safari precisely because of these tools.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic