C# debugging doesn't work
Summary
Setting a breakpoint then launching with <Space>gl causes a "request 1 timed out" error. I have netcoredbg and omnisharp in my PATH.
Reproduction Steps
- In the terminal:
dotnet new console -n HelloWorld
cd HelloWorld
dotnet build
hx Program.cs
- Set a breakpoint on the
Console.WriteLinestatement '<Space>gb` - Debug launch
<Space>gl - Path to dll:
bin\Debug\net8.0\HelloWorld.dll
Helix log
~/.cache/helix/helix.log
2024-07-17T22:21:35.217 helix_view::handlers::dap [WARN] Unhandled event Capabilities(Capabilities { capabilities: DebuggerCapabilities { supports_configuration_done_request: Some(true), supports_function_breakpoints: Some(true), supports_conditional_breakpoints: Some(true), supports_hit_conditional_breakpoints: None, supports_evaluate_for_hovers: None, supports_step_back: None, supports_set_variable: Some(true), supports_restart_frame: None, supports_goto_targets_request: None, supports_step_in_targets_request: None, supports_completions_request: None, supports_modules_request: None, supports_restart_request: None, supports_exception_options: Some(false), supports_value_formatting_options: None, supports_exception_info_request: Some(true), support_terminate_debuggee: Some(true), support_suspend_debuggee: None, supports_delayed_stack_trace_loading: None, supports_loaded_sources_request: None, supports_log_points: None, supports_terminate_threads_request: None, supports_set_expression: Some(true), supports_terminate_request: Some(true), supports_data_breakpoints: None, supports_read_memory_request: None, supports_write_memory_request: None, supports_disassemble_request: None, supports_cancel_request: Some(true), supports_breakpoint_locations_request: None, supports_clipboard_context: None, supports_stepping_granularity: None, supports_instruction_breakpoints: None, supports_exception_filter_options: Some(true), exception_breakpoint_filters: Some([ExceptionBreakpointsFilter { filter: "all", label: "all", description: None, default: None, supports_condition: None, condition_description: None }, ExceptionBreakpointsFilter { filter: "user-unhandled", label: "user-unhandled", description: None, default: None, supports_condition: None, condition_description: None }]), completion_trigger_characters: None, additional_module_columns: None, supported_checksum_algorithms: None } })
2024-07-17T22:21:35.279 helix_dap::transport [ERROR] err: <- IO(Os { code: 10054, kind: ConnectionReset, message: "An existing connection was forcibly closed by the remote host." })
2024-07-17T22:21:55.220 helix_dap::transport [ERROR] err: <- IO(Os { code: 10054, kind: ConnectionReset, message: "An existing connection was forcibly closed by the remote host." })
Platform
windows 11
Terminal Emulator
Windows terminal, Powershell
Installation Method
winget
Helix Version
helix 24.3 (2cadec0b)
Any updates on this issue? I've tried to identify the problem and it appears that there is no communication between netcoredbg and Helix after what looks like sucessfull initialization. Netcoredbg exhibits strange behavior by default, not starting until command run. I've tried using the '--run' argument, but with no success. Unfortunately, my Rust skills are not advanced enough to debug this further
I have the same issue. Did anyone happen to find out what could be wrong with the setup?