0

I am new to using Rider. Currently, I am working with JetBrains Rider 2020.3.2 (osx). Until recently I was using Visual Studio for Mac and there I had the possibility as run configuration to have for example the following setup (see image):

Project options with Run configuration

This allowed me to start an external program in order to debug the solution.

Now as I transferred to Rider I cannot seem to find a way that allows me to start an external program. Is there already a setup for this?

Mukesh Panchal
  • 1,956
  • 2
  • 18
  • 31

1 Answers1

0

In the Main menu Run -> Edit Configurations... would show UI for adding. There are separate templates for .NET Executable and Native Executable.

I have worked with 2 types of native apps, which host embedded mono. Both have debugging support in Rider improved via plugin. Unity. Godot.

Maybe the approach can be generalized, requested here.

Out-of-the-box debugging of embedded mono is not so straitforward, you would need separate Launch and Attach configurations as shown here

Ivan Shakhov
  • 1,299
  • 11
  • 12
  • and is there the possibility with the Native Executable to allow debugging? For example to setup a configuration with NativeExecutable and when you start it to start it with debugging in rider? – urbanninjajo Jan 22 '21 at 12:47
  • Forgot to mention I am talking about running a MacOs app and running a .Net Project and i want to achieve debugging in the .Net Project. – urbanninjajo Jan 22 '21 at 16:52
  • Is it native app with embedded mono? – Ivan Shakhov Jan 22 '21 at 21:26
  • We are talking about a native macos app. The app is the UI for the .Net part. I can run the App from Xcode, but from there I cannot achieve the debugging in .Net. Previously I was doing this with Visual Studio for mac. But since i now have Rider, I wanted to achieve it there as well. So running the macos app as native executable and debugging into the .Net part in Rider. – urbanninjajo Jan 23 '21 at 22:12
  • Are we talking about Xamarin? How that C# container is embedded? – Ivan Shakhov Jan 25 '21 at 06:50
  • We are talking about a pure native macOS UI App. The project in XCode contains the dlls from the C# Project. And then as mentioned in my question for example I can achieve that under Visual Studio for mac just by running in the Configurations an External program (which is the .app program that is build from XCode) and as Run in directory path i setup the path to the c# dlls which are contained as contents under the macos app – urbanninjajo Jan 25 '21 at 07:13
  • Have you created the application from some template in VSfM or XCode? Which template was it? I have just installed VSfM to check, but Cocoa App, which I checked, just works (run/debug) in Rider. – Ivan Shakhov Jan 25 '21 at 07:49
  • The application in VSfM is a netcoreapp2.1 with outputType exe. And for XCode it is a new App applicaiton for macOS – urbanninjajo Jan 25 '21 at 08:57
  • Any tutorial or step-by-step guide on how native app loads the netcore app? – Ivan Shakhov Jan 25 '21 at 09:30
  • example project may help – Ivan Shakhov Jan 25 '21 at 09:31