User Agents

Web browsers and everyday web tech, explained

VSCodium Debugging Extensions & Sync Tools

· 5 min read · Extensions

In this article
  1. Background: VSCodium vs. VS Code
  2. Debugging Extensions in VSCodium
  3. Syncing Settings and Extensions: The Settings Sync Extension
  4. Alternative Syncing Methods
  5. Common Problems and Solutions
  6. How to Choose the Right Sync Method
  7. Frequently Asked Questions

For debugging extensions in VSCodium, you use the built-in Extension Development Host and the F5 debugger with the "Extension" launch configuration, and for syncing settings, extensions, and keybindings, you use the Settings Sync extension (or its built-in alternative, which is not available in VSCodium due to its open-source nature). This article explains both processes in detail, including setup, common issues, and alternatives.

Background: VSCodium vs. VS Code

VSCodium is a free, open-source binary distribution of Microsoft's Visual Studio Code. It removes all telemetry, branding, and proprietary components, making it fully open-source. However, this also means it lacks some features that rely on Microsoft's proprietary services. The most notable difference is that VSCodium does not include the built-in Settings Sync feature that uses Microsoft's account service. Instead, you must use a third-party extension like Settings Sync (by Shan Khan) or manually sync via Git or file copy. Debugging extensions, however, works identically because the debugging infrastructure is open-source.

Debugging Extensions in VSCodium

To debug an extension you are developing in VSCodium, you use the same workflow as in VS Code. The key is the Extension Development Host, a separate instance of VSCodium that runs your extension in isolation. Here is how to set it up:

  1. Open your extension project folder in VSCodium.
  2. Press F5 or go to the Run and Debug view (Ctrl+Shift+D) and select Extension as the launch configuration. This is provided by the built-in vscode-extension debugger.
  3. VSCodium launches a new window (the Extension Development Host) with your extension loaded. Set breakpoints in your extension's code; the debugger will hit them when the extension runs in that host.

You can also use the Attach to Extension Host configuration if you need to debug an already running extension host. This is useful for debugging extensions that are already installed and running. To use it, create a launch configuration with "type": "extensionHost" and "request": "attach", then set a breakpoint and attach.

Common debugging features like watch variables, call stack, and console output work as expected. The Extension Development Host has its own developer tools (Help > Toggle Developer Tools) for inspecting the UI.

Syncing Settings and Extensions: The Settings Sync Extension

Since VSCodium lacks the built-in sync that uses a Microsoft account, the most popular method is the Settings Sync extension by Shan Khan. This extension uses a GitHub Gist to store your configuration. Here is how to use it:

  1. Install the Settings Sync extension from the Open VSX registry (the default marketplace for VSCodium).
  2. Open the command palette (Ctrl+Shift+P) and run Sync: Update / Upload Settings.
  3. Authorize with your GitHub account when prompted. The extension creates a private Gist containing your settings, keybindings, extensions list, and snippets.
  4. To restore on another machine, install the extension, run Sync: Download Settings, and authorize with the same GitHub account. The extension will apply the configuration.

You can also manually manage the Gist ID if you want to share configurations across machines without GitHub login (e.g., using a personal access token). The extension supports multiple Gist IDs for different profiles.

Alternative Syncing Methods

If you prefer not to use a third-party extension, you can sync manually:

  • Copy user settings files: VSCodium stores user settings in ~/.config/VSCodium/User/settings.json on Linux, ~/Library/Application Support/VSCodium/User on macOS, and %APPDATA%\VSCodium\User on Windows. You can copy these files to another machine.
  • Use a Git repository: Put your VSCodium configuration directory under version control and push/pull changes.
  • Use a cloud storage service: Sync the configuration folder via Dropbox, Google Drive, or similar.

These manual methods do not automatically sync extensions, but you can export a list of installed extensions with codium --list-extensions and reinstall them with codium --install-extension <id>.

Common Problems and Solutions

Problem: Extension debugging does not start. This usually happens if you have not installed the @vscode/vsce tool or if your extension manifest is invalid. Ensure your package.json has a main field and that the extension compiles (if using TypeScript). Also, check the debug console for errors.

Problem: Settings Sync fails to upload. This is often due to a missing GitHub token or network issues. Re-authenticate with GitHub and ensure your Gist is accessible. The extension also requires the gist scope.

Problem: VSCodium does not recognize the Settings Sync extension. Make sure you are using the Open VSX registry, not the Microsoft Marketplace. VSCodium cannot use the Microsoft Marketplace due to licensing, so you must install extensions from Open VSX or manually from VSIX files.

Problem: The Extension Development Host does not reflect changes. After editing your extension code, you need to reload the host window (Ctrl+R) or restart the debug session.

How to Choose the Right Sync Method

Consider your needs:

  • If you want automatic sync across multiple machines, the Settings Sync extension is the most convenient.
  • If you prefer full control and privacy, a Git repository gives you versioning and history.
  • If you only need to sync settings and not extensions, copying files is simplest.

For debugging, there is no alternative to the built-in Extension Development Host—it is the only way to debug extensions in VSCodium.

Frequently Asked Questions

Does VSCodium have built-in settings sync like VS Code?

No. The built-in sync in VS Code relies on Microsoft's proprietary service, which is not included in VSCodium. You must use the Settings Sync extension or manual methods.

Can I use the Microsoft Marketplace with VSCodium?

No. The Microsoft Marketplace is not compatible with VSCodium due to licensing restrictions. Use the Open VSX registry or install VSIX files manually.

How do I debug a running extension in VSCodium?

Use the "Attach to Extension Host" launch configuration. Set a breakpoint in your extension code, then start the attach configuration. The debugger will connect to the running Extension Development Host.

Is the Settings Sync extension safe to use?

Yes, it is widely used and open-source. It stores your configuration in a private Gist on GitHub. You should review the permissions it requests and ensure your GitHub account is secure.

Can I sync extensions without an account?

Yes, you can manually copy the extensions folder from your VSCodium data directory, or use the --list-extensions and --install-extension commands to replicate the list on another machine.