Updated on 2025-09-04 GMT+08:00

Debugging Standard Pages

After developing a standard page, you need to check whether the page meets the expectation. Standard page debugging is classified into event debugging and page style debugging.

Debugging Events

  1. Open a standard page.

    Figure 1 Standard page instance

  2. Select a widget, for example, Upload. In the right pane, switch to the Events tab page and click + next to on-upload.

    Figure 2 Clicking the plus sign (+) next to on-upload

  3. In the code editing area, use the debugger statement to set breakpoints and click Create.

    Figure 3 Using the debugger statement to set breakpoints

  4. Return to the standard page development page, click , save the standard page, and click to preview the standard page.
  5. On the preview page that is displayed, press F12 or Ctrl + Shift + I to start the debugging tool.

    View log information on the Console tab page and network request information on the Network tab page.
    Figure 4 Viewing log information on the Console tab page
    Figure 5 Viewing network request information on the Network tab page

  6. Click the upload button to upload the file. The debugger statement is used to set a breakpoint in the custom JavaScript code of the uploaded event. Therefore, the event code stops when the debugger statement is executed.
  7. You can press F8 to go to the next breakpoint or press F10 to go to the next line.

    Figure 6 Debugging JavaScript code

Debugging the Page Style

  1. On the standard page development page, click to preview the standard page.
  2. On the preview page that is displayed, press F12 or Ctrl + Shift + I to start the debugging tool.
  3. Click the Elements tab and click the selector icon on the left.
  4. On the preview page, select a widget and debug the style in Styles in the lower right corner. For example, change the font color of Upload File or change the DOM structure.

    Figure 7 Debugging the DOM structure and style