Skip to main content

openDebugBrowser

plugin.debug.openDebugBrowser(url: string, port: number): Promise<OpenDebugBrowserResponse>

Requests to open a debug browser at the specified URL and port.

Parameters

ParameterTypeRequiredDescription
urlstringYesThe URL where the debug browser should be opened.
portnumberYesThe port on which the debug browser will listen.

Returns

Promise<OpenDebugBrowserResponse> — A promise that resolves with the response from the open debug browser event.

Example

import plugin from '@codebolt/plugin-sdk';

const result = await plugin.debug.openDebugBrowser('url', 0);
console.log(result);