remote debug macOS to windows

Answered

Hello,

I have an application that was made with asp.net framework 4.5.2. I work with a macbook pro and use Parallels to run a VM with Windows and run this application on IIS. Recently, I am testing Rider, and for my surprise, I can build this application in Rider.

So, I put the folder of the application in a shared folder which can be accessed by mac and windows, and point the IIS to this folder. Worked well :)

But sometimes I need debug. So, I saw that Rider has the remote debug feature. I set one SSH in my windows VM and I got connect. The problem is that when I try to debug, I get the message:

 

and when I put any breakpoint:

Any ideas if what I am trying is possible and what i should to do?

Thank you a lot and sorry for my english errors.

10 comments
Comment actions Permalink

Hello!

Please, enable "Debugger" tracing in the menu "Help | Trace Scenario (LOGS)", reproduce the issue once more and share Rider logs (Help | Compress Logs and Show in Finder) via https://uploads.services.jetbrains.com (let me know the exact name of the uploaded file)?

Seems, that the problem might be in paths.

 

Kind regards,

Sofya.

 

0
Comment actions Permalink

Hello Sofia,

File uploaded: rider-logs-20190718-103631-remote-debugger-mac-windows.zip

Thank you in advance.

0
Comment actions Permalink

Hi!

Rafael, thanks for the uploaded file.

Eugen, thanks for the issue.

 

We will keep you posted about updates.

 

Sofya.

0
Comment actions Permalink

Hello,

 

Any news on this case?

 

Thank you

0
Comment actions Permalink

Hello Rafael
Could you please try the latest Rider 2019.2. We've made a lot of changes in the Debug system. Please, let me know if the problem persists.

Kind regards,
Sofya.

0
Comment actions Permalink

Hi Sofia,

Unfortunately it doesn't work in last build. In additional I had lose an ability of remote connection to one of my windows instance, on another error persist.

0
Comment actions Permalink

Hi Sofia,

Now, almost works! :D

Look, seems like are working, but when I try step over(F10), he just resume program(F5).

I am trying to understand, maybe I am doing something wrong, because is showing "Could not get symbols":

 

Thank you :)

0
Comment actions Permalink

I think this is happen because to get build on Mac, I changed the debug type, because I was getting build failed:

 

So, I just create a configuration without debug:

 

I tried change the option Debug symbols for true, and select PDB only or Full, I clicked in Ok, and got the same error. When I back to the configuration, is showing "Portable" again.

Maybe I will only get this when my application is asp.net core

There's a way to build with debug?

 

Thank you

0
Comment actions Permalink

Hello Rafael, 

You are right, you got "Could not get symbols" because of Debug type = None. The correct value should be "Full." So, the question is why you cannot build your project with this debug type.

Could you please share

1. a screenshot of "Preferences | Build, Execution, Deployment | Toolset and Build."

2. the type of your project (it would be [erfect to have a csproj).

0

Please sign in to leave a comment.