So, I use JavaScript quite regularly, and I was wondering if there are any good tips or tricks in javascript debugging ... For example, I have a good one that I use quite regularly.
In my code, I would do something like this
window.p = $(this);
and in the console I can do my filtering as follows
window.p.next("li").find("a").val();
or what I need to do ... but it makes it easier to debug a specific place in the code, and I know that I have a lot of tips and tricks ... thanks in advance
I also looked at this question , and although it was useful, I was looking more for methods like mine above ...
source
share