Skip to main content
If your team uses Visual Studio Code, you can debug your CEF launcher skin with its JavaScript debugger. This builds on Test a launcher skin with the CEF debugging console.

Requirements

  • The DirectGVR client binary (host.exe or host.app)
  • The CEF binaries and libraries next to host.exe or inside host.app
  • Your launcher skin
  • Visual Studio Code 1.6 or newer, which includes the JavaScript Debugger

Set up the client and skin

Collect host and the CEF files in a test folder as described in Test a launcher skin with the CEF debugging console. Note the path to your skin. For React skins, start the Node web server first with npm run start or yarn run start, and note the port it shows.

Create launch.json

  1. In VS Code, open your skin folder.
  2. Select Run → Add Configuration → Chrome.
  3. Replace the generated code with the configuration for your setup below.
  4. Save the file as launch.json. VS Code creates a .vscode folder.
Set runtimeExecutable to the full path of the host executable and --skin to your skin folder. On macOS, the executable is inside the app at host.app/Contents/MacOS/host.
For React skins, change only the port in --devserver to the one Node shows. Leave "port": 9222 as it is.

Start debugging

Select Run → Start Debugging or press F5. VS Code starts the client and attaches the debugger.