Effortless Remote Debugging with Dev Tunnel in Visual Studio 2022
Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (179).NET Core  (29).NET MAUI  (214)Angular  (110)ASP.NET  (51)ASP.NET Core  (83)ASP.NET MVC  (90)Azure  (41)Black Friday Deal  (1)Blazor  (226)BoldSign  (15)DocIO  (24)Essential JS 2  (109)Essential Studio  (200)File Formats  (68)Flutter  (133)JavaScript  (226)Microsoft  (120)PDF  (81)Python  (1)React  (105)Streamlit  (1)Succinctly series  (131)Syncfusion  (942)TypeScript  (33)Uno Platform  (3)UWP  (4)Vue  (45)Webinar  (52)Windows Forms  (61)WinUI  (71)WPF  (163)Xamarin  (161)XlsIO  (38)Other CategoriesBarcode  (5)BI  (29)Bold BI  (8)Bold Reports  (2)Build conference  (9)Business intelligence  (55)Button  (4)C#  (157)Chart  (140)Chart of the week  (54)Cloud  (15)Company  (443)Dashboard  (8)Data Science  (3)Data Validation  (8)DataGrid  (70)Development  (658)Doc  (8)DockingManager  (1)eBook  (99)Enterprise  (22)Entity Framework  (7)Essential Tools  (14)Excel  (43)Extensions  (22)File Manager  (7)Gantt  (19)Gauge  (12)Git  (5)Grid  (31)HTML  (13)Installer  (2)Knockout  (2)Language  (1)LINQPad  (1)Linux  (2)M-Commerce  (1)Metro Studio  (11)Mobile  (512)Mobile MVC  (9)OLAP server  (1)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (43)Performance  (12)PHP  (2)PivotGrid  (4)Predictive Analytics  (6)Report Server  (3)Reporting  (10)Reporting / Back Office  (11)Rich Text Editor  (12)Road Map  (12)Scheduler  (54)Security  (4)SfDataGrid  (9)Silverlight  (21)Sneak Peek  (31)Solution Services  (4)Spreadsheet  (11)SQL  (14)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (12)Tips and Tricks  (112)UI  (393)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (2)Visual Studio  (31)Visual Studio Code  (19)Web  (614)What's new  (333)Windows 8  (19)Windows App  (2)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
Effortless Remote Debugging with Dev Tunnel in Visual Studio 2022

Effortless Remote Debugging with Dev Tunnel in Visual Studio 2022

TLDR: Learn how Visual Studio 2022’s Dev Tunnel simplifies remote debugging, enhances collaboration, and streamlines workflows for developers.

Remote collaboration has become a crucial component of software development in today’s connected world. Debugging code remotely has become essential as teams dispersed across various locations and time zones. Dev Tunnel, a ground-breaking feature in Visual Studio 2022, provides seamless remote debugging capabilities.

In this blog, we’ll explore the power of Dev Tunnel and how it enhances developers’ remote debugging experience.

Understanding Dev Tunnel

Dev tunnel provides a secure way for developers to share local web services over the internet. They enable seamless integration between your local development environment and cloud services, facilitate collaboration by allowing you to share work in progress with colleagues, and assist in creating webhooks.

It’s important to note that dev tunnels are primarily intended for ad-hoc testing and development purposes and should not be used for production workloads.

In Visual Studio 17.6 and later versions, you can conveniently generate public or private persistent/temporary tunnels directly through the Visual Studio wizard; you will no longer need the extra configurations in your project.

This feature enables you to create a proxy to your local machine effortlessly, ensuring seamless connectivity. The tunnel remains active until you close it, enhancing the developer experience and streamlining your workflow.

Note: The feature is not currently available in Visual Studio for MacOS.

Setting up Dev Tunnel with Syncfusion Blazor Data Grid application

Let’s see how to set up Dev Tunnel with Syncfusion Blazor Data Grid by following these steps:

  1. First, create your Blazor server application using Visual Studio 2022.
  2. Configure the Syncfusion Blazor Data Grid within your application.
  3. Create a new Dev Tunnel within Visual Studio by referring to the following image.
    Create a new Dev Tunnel within Visual Studio
  4. Now, select the account you want to use to create the tunnel. The available account types are Azure, Microsoft Account, and GitHub.
    Select the account you want to use to create the tunnel
    • Provide a name for the tunnel. This name is used to identify the tunnel in the Visual Studio UI.
    • Choose the tunnel type, Persistent or Temporary:
      • A temporary tunnel requires a new URL each time Visual Studio starts.
      • A persistent tunnel requires the same URL each time Visual Studio starts. For more details, refer to the Persistent vs. Temporary Tunnels article.
    • Choose any one of the following authentication types that are required to access the tunnel.
      • Private: This tunnel can be accessed only by the account that created it.
      • Organization: This tunnel can be accessed by the accounts within the same organization as the one who created it. If we select this option for our personal Microsoft account (MSA), the effect will be the same as when choosing the private authentication type. This support isn’t available for GitHub accounts.
      • Public: Anyone can access this tunnel. It doesn’t require an authentication. But ensure the security of the web app or API, which are accessible to anyone online.
    • Click OK to create the Dev Tunnel. You will get the following pop-up window once the Dev tunnel is successfully created.Pop-up window notifying successful creation of Dev tunnel
  1. Run the application and obtain the tunnel URL from the browser, as shown below.
  1. Use the tunnel URL to run the app in the iPad Pro 12 Emulator or any desired environment.Run app with tunnel URL on iPad Pro 12 Emulator or any desired environment.
  2. Proceed with running the application.
  3. Verify that the Syncfusion Blazor Data Grid sample is rendered successfully.Select a row within the Data Grid
  4. Select a row within the Data Grid sample.Verify successful rendering of Syncfusion Blazor DataGrid sample.
  5. The debugger will hit the specified breakpoint in the Data Grid RowSelected event handler, allowing you to debug and analyze your code.
    Performing remote debugging with Dev Tunnel in Blazor Data Grid app
    Performing remote debugging with Dev Tunnel in the Blazor Data Grid app

Benefits of Dev Tunnels

  • Simplified remote debugging: With Dev Tunnel, you no longer need to spend hours configuring complex network settings or dealing with firewalls and port forwarding. The streamlined process allows you to quickly establish a connection to your remote environment and start debugging immediately.
  • Secure connection: Dev Tunnel leverages SSH tunneling. It provides a secure connection between your local machine and the remote environment. It helps us to ensure that the data remains encrypted and protected from unauthorized access.
  • Streamlined workflow: Dev Tunnel integrates seamlessly into Visual Studio 2022, allowing you to utilize familiar debugging tools and features. You can set breakpoints, inspect variables, step through code, and use all the debugging capabilities as if working on your local machine.
  • Multiple scenarios: Whether you’re debugging a cloud-based app, a microservice architecture, or a remote IoT device, Dev Tunnel can handle a wide range of scenarios. It enables you to debug apps in remote environments without any hassle.
  • Collaboration made easy: Dev Tunnel empowers remote teams to collaborate effectively. Developers can work together on the same codebase, debugging and troubleshooting issues, regardless of their physical locations. This feature significantly improves productivity and teamwork.

Syncfusion Blazor components can be transformed into stunning and efficient web apps.


Thanks for reading! In this blog, we delved into the power of Dev Tunnel in Visual Studio 2022 and how it simplifies debugging apps in remote environments.

The Syncfusion Blazor component library offers responsive, lightweight components for building modern web apps.

Our existing customers can download the new version of Essential Studio from the License and Downloads page. If you are not a Syncfusion customer, try our 30-day free trial to check out our incredible features.

If you have any questions or need assistance, our support team is always here to help. Feel free to contact us through our support forumsupport portal, or feedback portal. We look forward to hearing from you!

Related blogs


Share this post:

Popular Now

Be the first to get updates

Subscribe RSS feed

Be the first to get updates

Subscribe RSS feed