Click here to Skip to main content
15,887,337 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a webform based app made on my Windows 11 PC via Visual studio 2022 for Windows - but needs to debug it on a MAC via MAC's Safari browser. My project is made with .NET Framework 4.7.2 - and need to debug it on a MAC. I can see that there is a possibility to pair to a MAC computer in Visual Studio 2022.

So my question is: Give this pairing me a connection to a Safari browser on a physical MAC? so I can debug directly on a MAC?

What I have tried:

I have tried to search a lot on google - but I have not found any pages that can help me how to debug on a MAC browser from a Windows pc :-(
Posted
Updated 30-Jun-23 0:36am
v2

You don't need to run the server on a MAC. You can run your web server on your dev windows PC. The idea of debugging the Client-side on a Mac is to debug the Html/CSS on Safari, not the server itself.

What you need to do is expose the web server for the MAC to access.

Here is one method: Run Web Application or Web Services from Visual Studio in IIS Express and access from Network - YouTube[^]. This is a manual method of doing it.

I like to use: Conveyor by Keyoti - Visual Studio Marketplace[^]. This will do all the manual work for you.

Alternatively, If you DO want to run the server in MacOS, then move the project to Dot Net Core. Doing so will also improve the speed of your server as there are no legacy .Net Framework to support, so ultra optimised.
 
Share this answer
 
v2
I have no Mac and this approach looks rather complex - but you could try it:
how-to-debug-a-website-in-ios-safari-on-windows

Here is a commercial tool but you can try it for free:
Inspect – The mobile DevTools you'll love using[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900