How I Debug dotnet console app exists on remote linux server from my local windows machine?
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 .