Overview
The library can directly launch a debugger panel, including: Vela's aiot-devtools-frontend panel, and a mini-game debugging panel.
Installation
npm
npm i @aiot-toolkit/devtools-fe-lib
yarn
yarn add @aiot-toolkit/devtools-fe-lib
Usage
Launch the custom debugger panel for vela
openVelaDevtoolsFe({ host, port })
- params:{ host, port }
- host: the host of CDPServer
- port: the port of CDPServer
import { openVelaDevtoolsFe } from '@aiot-toolkit/devtools-fe-lib'
(async () => {
try {
await openVelaDevtoolsFe({ host: '127.0.0.1', port: 5560 })
} catch(err) {
}
})()