SuessLabs / VsLinuxDebug

VS Extension to remotely deploy and debug your .NET (Core) C# solutions directly to your Linux or Raspberry Pi devices! .NET Core 3.1, .NET 5, 6, 7, 8, 9
https://marketplace.visualstudio.com/items?itemName=SuessLabs.VSLinuxDebugger
MIT License
36 stars 8 forks source link

Raspberry PI: launch: program '' does not exist, with workaround #71

Closed hbraasch closed 11 months ago

hbraasch commented 1 year ago

Description

When launching the debugger, I get the error message [launch: program '' does not exist] A crude fix is shown below.

Severity (1-5)

5 - Cannot debug

Steps To Reproduce

Generate a stock .net console app Setup the device specific data in the VSLinuxDebug Setup (IP addr, username, pwd) Launch the debugger See error message To fix this, I had to make sure the setting [.Net executable] points to the full [dotnet] pathname. See below:

image

The arrow points to the path detail I needed to add for my specific installation. I tried this also: [export DOTNET_ROOT=/usr/lib/dotnet] but that did not solve the problem.

Expected Behavior

Hit breakpoint.

Screenshots

Not applicable

Linux Distribution:

DamianSuess commented 1 year ago

Thank you @hbraasch for reporting this issue. During the installation, the system is configured to use the default DotNet command that does not require the full installation path. Since there are so many distributions, it's difficult to test them all and I really appreciate you bringing this to light. For my tests, I usually stick with Ubuntu 20.04, 22.04, and sometimes Kali.

https://github.com/SuessLabs/VsLinuxDebug/blob/cb84f6aaae9217525762b5dc96b60381a3dee9d8/src/VsLinuxDebugger/OptionsPages/OptionsPage.DotNet.cs#L27

https://github.com/SuessLabs/VsLinuxDebug/blob/cb84f6aaae9217525762b5dc96b60381a3dee9d8/src/VsLinuxDebugger/Commands.Impl.cs#L175

github-actions[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

esonhon commented 4 months ago

Same here, my remote configuration is: Ubuntu 20.0.4 LTS for Arm64. Point the .Net executable to full path solved this problem.