If you have Google Chrome, open the "Developer Tools" and you can go to the "scripts" tab, open your javascript files and find a click handler .. click on the side of the code to set a breakpoint, then when the code reaches this place (if you click it, for example), it will stop, and then in the Developer Tools you will see what functions are called when you go through the code. You can also hover over any variable in the code window to see its value. Very comfortably! Then you can see if it gets into your plugin at all (you can also do this by setting a breakpoint inside the plugin in a place, such as the first line, which will always be available when it starts).
I believe you can do the same with Firebug
This is a slightly different thinking process to enter (step forward, step over, enable breakpoints, etc.), but it is extremely useful.
An easier way to check for problems is to add a warning ("im working"); or something similar to code, you are not sure if it works. You can also warn the variable to find out what the value is. You can also use the console command to print it in the firebug console. They do what they disable / debug for you, except when debugging you do not need to change the code.
Damon
source share