• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JavaScript debugging is fun

 
Ranch Hand
Posts: 624
9
BSD Java
  • Likes 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am basically a Java guy who can write basic jQuery.
I have never did debugging in JavaScript.
Yesterday we faced a production issue and I actually learnt how to debug in Chrome.
There was whole lot code of jQuery and Kinetic js.
I went step by step in Chrome debugger and found the bug.
It actually felt so good.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Learning how to use the browser dev tools is indeed one of the very first skills one needs to adopt when writing client-side code. Well done.
 
Tapas Chand
Ranch Hand
Posts: 624
9
BSD Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Bear...a lot to learn.
 
Ranch Hand
Posts: 310
18
MS IE Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One tip for debugging libraries/frameworks: always attach the non-minimized version of libraries in development environment, ie. jquery.js instead of jquery.min.js. That way you will get much better info about warnings and errors. Some frameworks, like angular.js, will ever provide you with a link to documentation about found issue.
 
Tapas Chand
Ranch Hand
Posts: 624
9
BSD Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was debugging the application code, not the jQuery or node js code.
But your tip for library/framework debugging is a good one.
I will remember to use the non-minified libraries in developement environment.
 
Tapas Chand
Ranch Hand
Posts: 624
9
BSD Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are 2 front end developers who sit couple of desk away from me.
One uses Chrome and other uses Firefox to debug. I took the help of Chrome guy and it is really amazing.
Never tried with Firefox though.

So is it just a personal preference or Chome debugger and Firefox debugger have some advantages over each other?
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Both are fine. I'm more comfortable with the Chrome tools so that's what I primarily use unless I'm debugging a problem specific to another browser.

Your choice.
 
Andrew Polansky
Ranch Hand
Posts: 310
18
MS IE Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I used Chrome tools only a few times to deal with Chrome-specific problems, so I don't know much how it really compares with other tools with day-to-day debugging.

I am using Firefox with Firebug and Web Developer Tools plugins for years. Those tools fulfil my needs and I am really happy with them. Those tools existed long before Chrome existed itself, so it's certainly worth to try this stack.

Try out both and make a decision based on your own experience with both of the tools. Sure thing is that will you not make a bad decision by choosing either Chrome or Firefox with Firebug, both are great tools that are very popular in web development environment.
 
Tapas Chand
Ranch Hand
Posts: 624
9
BSD Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Bear and Adam.
 
I am going to test your electrical conductivity with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic