概要
開発者ツールを使って Web ページを調べるための CDP エージェント。クライアント側の JavaScript で実装されています。
開発ツール計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- -1
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルDevtools Remote Debugger
Based on Google's open-source devtools-frontend, you can use JavaScript to implement the Chrome DevTools Protocol . By simply loading a piece of JavaScript code on a web page, you can use the familiar Chrome DevTools to remotely debug the page.
The web page being debugged connects to an intermediate Node layer via WebSocket, and DevTools also connects to the Node layer via WebSocket. The primary role of the Node intermediate layer is to forward socket protocols between the web page and DevTools, enabling full-duplex communication between them.
Additionally, this project has been included in the awesome-chrome-devtools collection.

🎬 Debug DEMO
🎉 Features:
Elements
- Display Html Tags
- Edit Html Attributes
- Display Style Rules
- Highlight Node
Preivew


Console
- Execute JavaScript Code
- Show Error Stack
Preivew

Sources
- Show Source Code
Preivew

Network
- Show XHR/Fetch Request
- Show JavaScript/CSS/HTML Request
- Show Image Request
Preivew

Application
- Local Storage
- Session Storage
- Cookies
Preivew

ScreenPreview
- Live Preview
Preivew

How to start?
Open the command terminal and start the following commands
1. Start Serve
npm run dev
2. Open the debug page
Open two pages in the browser
- Debug DEMO page: http://localhost:8080/remote/debug/example/index.html
- debug background: http://localhost:8899/page/index.html

How to use?
1、Modify the variables of the .env file
# The port number to start the Node, such as: port 80
DEBUG_PORT=8080
# Debug the domain name after the deployment of the backend, such as: https://www.remote-debug.com/
DEBUG_HOST='http://localhost:8080'
- Execute
npm run buildto build the project code, and thedistdirectory will be packaged. The structure is as follows:
├── page # Debug backend
│ ├── index.css
│ ├── index.html
│ ├── index.js
├── cdp.js # The CDP code for debugging needs to be loaded on the page being debugged. You can deploy it to a CDN.
- Start the backend
npm run start
- The browser opens the debugging backend http://www.debug.com/remote/debug/index.html, if the debugging target page loads the
cdp.jscode, then the debugging backend will see the connection record
💡Please note that www.debug.com is just an example, please replace it with your own specific domain.
Additional Information
Due to the restrictions of the same-origin policy, you may need to make the following changes:
- By default, the browser does not allow JavaScript to read CSSRules from different domains. Therefore, when including external styles via a link, you need to add the attribute
crossorigin="anonymous". This issue does not apply to styles within style tags. - To capture detailed JavaScript error information, you also need to add
crossorigin="anonymous"to the script tags.
Star History
License
Copyright (c) Nice-PLQ
関連プロジェクトを探す
読み込み中…