How I Debug dotnet console app exists on remote linux server from my local windows machine?

NALB 71 Reputation points
2023-02-22T10:58:53.81+00:00

hello ,

I have added my dot net app on Linux and it runs and work the problem that it shucks at some point so I wanna debug it in order to know where is the problem ?

in order for me to do this I followed the steps in this link (https://learn.microsoft.com/en-us/visualstudio/debugger/remote-debugging-dotnet-core-linux-with-ssh?view=vs-2019#build-and-deploy-the-application) at the deployment are i just got all my code and added on the remote Linux server and i build and run it ...

then at the attach process section I was able to connect to server and attach it to botnet however when it starts thee debugger the break point has a warning sign that it can not be hit.

I have searched in that and found that maybe because different versions how ever my dotnet is 6.0.300 and the server's 6.0.405 is that the problem as i have tried to align both versions but it is not working ...

Could you please help me solving this ASAP , Thank you .

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,803 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,339 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.