Closed akpaevj closed 1 month ago
The changes introduce a mechanism to enable debugging for the VSCode Debug Adapter by adding a command-line argument that allows the application to listen for TCP connections. A new configuration file is created to facilitate this debugging mode. Additionally, the project file is updated to use a newer version of C#, ensuring compatibility with modern language features.
File | Change Summary |
---|---|
src/VSCode.DebugAdapter/Program.cs |
Added conditional debug mode in Main method; listens for TCP connections if --debug is provided. |
src/VSCode.DebugAdapter/Properties/launchSettings.json |
Introduced launchSettings.json with a profile for debugging, specifying --debug as command-line argument. |
src/VSCode.DebugAdapter/VSCode.DebugAdapter.csproj |
Updated <LangVersion> from 7.3 to 11.0 in project file. |
VSCode.DebugAdapter.csproj
regarding the addition of <GenerateRuntimeConfigDevFile>
are related to the main PR, as both involve modifications to the same project file, impacting the debugging experience.🐇 In the land of code where rabbits play,
A debug path was paved today.
With TCP listening, oh what a sight,
New language features make coding bright!
Hops of joy in every line,
Debugging bliss, how divine! 🐇
VSC позволяет подключаться к адаптеру по TCP, что позволяет отлаживать весь код адаптера, а не подключаться из IDE к процессу уже после инициализации. Для запуска адаптера в tcp режиме, необходимо передать аргумент --debug, порт отладки - 4711
Summary by CodeRabbit
New Features
--debug
argument is provided, allowing for enhanced debugging capabilities.launchSettings.json
file.Bug Fixes
Refactor