-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
JS_Debugging
Michal Čihař edited this page Apr 14, 2016
·
2 revisions
Open the js file where you want to set a breakpoint. In our example it's db_operations.js
Insert the "debugger;" statement (without the quotes) right before the line for which you want to set the breakpoint.
Go to desired page in your web browser, in our example it's db_operations.php.
Refresh the page. Do not skip this, it's necessary to have the correct version of the js files loaded when setting the breakpoint.
Click on the element that triggers the event handler that we are interested in. In our example, we submit the rename database form.
You will see a red dot appear to confirm that you have set a breakpoint (click again to remove it).
Popular destinations:
- Team meetings
- GSoC home
- Developer guidelines
- How to install on Debian and Ubuntu
- Issue and pull-request management
User resources: