I have a Rails application which generate HTML like this:
<a href="/ReadItLater/stock?qid=5618572&" data-remote="true">stock it</a>
When I click on this link in browser I can get information about AJAX request on Firebug, on Console tab. I can see the respond of the request:
$("#stock_5618528").hide();
But how can I set breakpoint on this line and debug this code?
If you change your response to include the debugger keyword it should hit that as a breakpoint. So in this case the response would be:
debugger;
$("#stock_5618528").hide();
Obviously don't forget to remove that when it goes live. :D
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With