This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| cfnet:cfheader:vscode_remote_debug_configurator:index [2026/03/04 14:17] – admin | cfnet:cfheader:vscode_remote_debug_configurator:index [2026/06/08 00:19] (current) – removed mfranklin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Visual Studio Code .NET Remote Debug Configurator ====== | ||
| - | |||
| - | ===== Download ===== | ||
| - | |||
| - | {{ https:// | ||
| - | |||
| - | ===== Overview ===== | ||
| - | |||
| - | Visual Studio Code, with existing C# extensions, already has the ability to deploy to, launch, and debug an application on a remote target device. | ||
| - | |||
| - | The .NET Remote Debug Configurator is a Visual Studio Code extension that simplifies the process of configuring remote .NET debugging sessions. Instead of manually editing JSON configuration files, developers only need to fill out a form. | ||
| - | |||
| - | {{ : | ||
| - | |||
| - | Visual Studio Code also has the ability [[https:// | ||
| - | |||
| - | Development should be done on a resource abundant development PC. The development PC will quickly build the application, | ||
| - | |||
| - | |||
| - | ===== Prerequisites ===== | ||
| - | |||
| - | ==== Setup Passwordless SSH Login ==== | ||
| - | |||
| - | This extension requires [[https:// | ||
| - | |||
| - | - On your development PC, generate a key pair < | ||
| - | - Copy the public key to the remote target. Don't miss the trailing colon. < | ||
| - | - Register the public key as an authorized key on the remote target. | ||
| - | - The next time you start an SSH session from your remote device, you should not be asked to authenticate with a password. | ||
| - | |||
| - | {{ https:// | ||
| - | |||
| - | |||
| - | ==== Install vsdbg on Remote Target ==== | ||
| - | |||
| - | This extension requires Microsoft' | ||
| - | |||
| - | <code bash> | ||
| - | curl -sSL https:// | ||
| - | </ | ||
| - | |||
| - | You can install it to a different location by changing the '' | ||
| - | |||
| - | ===== How to Use ===== | ||
| - | |||
| - | ==== Installation ==== | ||
| - | |||
| - | === Download the Extension === | ||
| - | |||
| - | {{ https:// | ||
| - | |||
| - | === Install the Extension === | ||
| - | |||
| - | - From the Extensions side panel in Visual Studio Code, select //Install from VSIX//.{{ : | ||
| - | - Browse to the downloaded .vsix file and press the " | ||
| - | |||
| - | |||
| - | ==== Create A Remote Debug Target ==== | ||
| - | |||
| - | - Open your .NET project in Visual Studio Code | ||
| - | - Press '' | ||
| - | - Type '' | ||
| - | - Fill out the configuration form with your remote debugging details | ||
| - | |||
| - | |||
| - | ==== Manage Existing Configurations ==== | ||
| - | |||
| - | When you open the configurator and have existing remote debug targets: | ||
| - | |||
| - | - Use the //Remote Target// dropdown to select which configuration to edit | ||
| - | - Modify any fields and click //Save Configuration// | ||
| - | - Click //Delete// to remove a configuration and all its associated tasks | ||
| - | |||
| - | ==== Start a Remote Debug Session ==== | ||
| - | |||
| - | - Go to the //Run and Debug// panel ('' | ||
| - | - Select your remote debug configuration from the dropdown at the top | ||
| - | - Press //F5// or click the green //Start Debugging// button | ||
| - | |||
| - | The extension will automatically: | ||
| - | - Deploy your application to the remote machine via SSH | ||
| - | - Start the application on the remote machine | ||
| - | - Attach the VS Code debugger through the SSH tunnel | ||
| - | - Connect you to the remote debugging session | ||
| - | |||
| - | |||
| - | ==== Configuration Marking System ==== | ||
| - | |||
| - | The extension uses a special comment marker (< | ||
| - | |||
| - | * Distinguish between extension-managed and user-created configurations | ||
| - | * Safely update or delete only its own configurations | ||
| - | * Automatically clean up associated tasks when deleting a debug profile | ||
| - | |||
| - | Please don't remote those comments from the .json files unless you no longer want this extension to manage those configurations. | ||