How to do it...

  1. Navigate to an entity that has a form that uses your JavaScript using Google Chrome, in our example, Sales | Graduation Details.
  2. Open an existing record by double-clicking a record in the list, or create a new one by clicking on the + New option.
  3. Press F12 on your keyboard or Ctrl + Shift + I. Alternatively, go to your Chrome menu and navigate to More tools | Developer tools.
  4. Select the Sources tab, and then look for your file in the left navigation Sources list or press Ctrl + P on your keyboard. Start typing a partial name of your file (common) to find your JavaScript file (in our example, packt_common.js).
  5. Click on the line number on the left-hand side corresponding to the line where you want the debugger to break.
  6. Perform the action that will trigger the JavaScript function call and the debugger will break at the breakpoint, as per the following screenshot:
  1. Once the debugger breaks on your breakpoint line, you can highlight expressions you want to inspect and hover over them to view their values.
  2. Press F10 to step to the next line.
  3. Press F8 to resume your script execution:
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.20.156