```sh # serve https:// $ npx @line/headless-inspector --https $ npx @line/headless-inspector --key=path/to/key.pem --cert=/path/to/cert.pem # serve http:// $ npx @line/headless-inspector ```
npm install @line/headless-inspector``sh`serve https://
$ npx @line/headless-inspector --https
$ npx @line/headless-inspector --key=path/to/key.pem --cert=/path/to/cert.pemserve http://
$ npx @line/headless-inspector
And then, add the following script tag to the debug target html file.
`html`
Your website automatically connects to the local server and send debug information.
Each connection has an unique hi_id` id. The local server logs the id and devtools URL when the connection from your website is established.