Chrome browser remote debugging

  1. Open the browser's remote debugging
    Chrome browser shortcut, right-click and select "Properties", add in the target column --remote-debugging-port=9222, the following ports can be defined by yourself, and start the browser after completion.
    Insert image description here
  2. Let's test it with another browser.
    Open the new version of edge browser and enter it in the address bar edge://inspect/#devices. If it is chrome, you need to enter it. chrome://inspect/#devices
    By default, the remote machine list is empty. By default, only pages opened by the browser are allowed to be debugged. The remote ones need to be added by ourselves. Click Configure to add a remote machine.
    Insert image description here
    Fill in the IP address and port in the pop-up window. Because it is the local machine, fill in localhost directly. You can also fill in the remote address.
    Insert image description here
    Click Doneto return to the previous page, wait or refresh to see the page opened by the browser being debugged.
    Insert image description here

Guess you like

Origin blog.csdn.net/LI4836/article/details/130045294