Development in Visual Studio; run and debug remote Linux objects

I am writing a program in C # in Visual Studio that runs in the target Linux environment (Raspberry Pi) under a mono framework.

Is there a way to debug code in Visual Studio when it is running on the target machine?

+4
source share
1 answer

You can do this with MonoDevelop (under Linux) and possibly with Xamarin Studio (not tested), but not with Visual Studio.

On the Raspbery Pi, run the target application as follows:

mono --debug --debugger-agent="address=192.177.88.11:10000,transport=dt_socket,server=y" \
/full/path/to/mono-application.exe

Change the IP address and path to the executable file. Note you must have debug built up, deployed with the corresponding debug files.

, → → Mono Soft Debugger. ; IP- (192.177.88.11) (10000) "". .

+2

Source: https://habr.com/ru/post/1599443/


All Articles