Debugging Your App
Guide
To start debugging your io.Connect Desktop app in Visual Studio Code, execute the following steps:
- Start io.Connect Desktop with the
--remote-debugging-portcommand line argument and specify a debugging port:
io-connect-desktop.exe --remote-debugging-port=9222Using the --remote-debugging-port command line argument instructs io.Connect Desktop to listen on the specified port for a debug connection.
- Add a new section to the
launch.jsonfile of Visual Studio Code with the following configuration:
{
"name": "io.Connect: Renderer",
"type": "chrome",
"request": "attach",
"targetSelection": "pick",
"port": 9222,
"webRoot": "${workspaceFolder}",
"timeout": 30000
}⚠️ Note that the port number in the
launch.jsonconfiguration must be the same as the one specified in the--remote-debugging-portcommand line argument for starting the io.Connect Desktop executable file.
Start your app. To debug your app locally, start your app on
localhostor other development server and update the"url"property in your app definition with the respectivelocalhostor development server URL.Select the
io.Connect: Rendererprofile from "Run and Debug" in Visual Studio Code.Select your app tab and start debugging.