• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to debug and solve Ajax issues when no error message is displayed?

 
Monica Shiralkar
Ranch Hand
Posts: 857
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to jquery.I want to know that once we call AJAX using Jquery and we do not get any response than how to know what is the problem.In java we get error message using which we resolve the issue.But in Jquery AJAX call if it does not fetch the required data how to isolate what is the problem as no error messages are captured.Please advice.
Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65119
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know I've said this to you before in previous posts: learn to use the browser debugging tools. They have all the info you need to debug problems such as this.
 
Monica Shiralkar
Ranch Hand
Posts: 857
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. As I have started to search these tools and would search which one is easiest for my requirement of debugging Jquery AJAX calls.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65119
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I personally prefer the tools in Chrome, but all modern browsers have a decent set of debugging tools*.



* You have to load Firebug into Firefox.
 
Monica Shiralkar
Ranch Hand
Posts: 857
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found that Control shift J is the way to debug in chrome.Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65119
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or toolbar menu > Tools > Developer tools
 
Rob Crowther
author
Ranch Hand
Posts: 297
5
Android Fedora Firefox Browser
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a nice introduction to Chrome developer tools.

Bear Bibeault wrote:* You have to load Firebug into Firefox.


Firefox has a fairly competent set of debugging tools built in these days, hit Ctrl+Shift+K. I still use Firebug myself, but I think mostly through familiarity and habit rather than because it's clearly better than the built in stuff.
 
Monica Shiralkar
Ranch Hand
Posts: 857
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
all modern browsers have a decent set of debugging tools


I wonder how debugging would have been done in older versions of IE.

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65119
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Crowther wrote:Firefox has a fairly competent set of debugging tools built in these days

Cool beans! I hardly ever use Firefox anymore, so they snuck that one in on me. I knew they were working on one.

Now I can stop saying "except Firefox".
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65119
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Monica. Shiralkar wrote:I wonder how debugging would have been done in older versions of IE.

alert()

Seriously, even older version of IE have some debugging tools -- but I find them almost unusably cumbersome, especially in comparison to modern tools.
 
Monica Shiralkar
Ranch Hand
Posts: 857
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic