简体   繁体   English

如何在Raspberry PI 3上使用Visual Studio 2019调试ASP.NET Core 3.0应用程序

[英]How can I debug ASP.NET Core 3.0 application with Visual Studio 2019 on Raspberry PI 3

Is it possible to debug ASP.NET Core 3.0 application with Visual Studio 2019 on Raspberry PI 3? 是否可以在Raspberry PI 3上使用Visual Studio 2019调试ASP.NET Core 3.0应用程序?

I manage to install ASP.NET Core 3.0 and create Hello World application on Raspberry PI with dotnet new webapp . 我设法安装ASP.NET Core 3.0并使用dotnet new webapp在Raspberry PI上创建Hello World应用程序。
Then I build ASP.NET Core 3.0 on Visual studio 2019 and deploy it to local folder, copy entire content to raspberry pi and run it. 然后我在Visual Studio 2019上构建ASP.NET Core 3.0并将其部署到本地文件夹,将整个内容复制到raspberry pi并运行它。 It works. 有用。

But I don't know how can I debug app from Visual Studio 2019. There is no remote debugging property, I can not select any arm CPU type nothing. 但是我不知道如何从Visual Studio 2019调试应用程序。没有远程调试属性,无法选择任何ARM CPU类型。

I can't even find any blog, post how to do it. 我什至找不到任何博客,发布如何做。

You can debug over SSH in Visual Studio. 您可以在Visual Studio中通过SSH进行调试。

So what you want to do is effectively this: 因此,您要做的实际上是这样的:

  1. Make your hello world app 制作您好的世界应用
  2. Set breakpoints in it where you want them 在需要的地方设置断点
  3. Build the app in debug, self contained 在调试中构建应用程序,自包含
  4. Deploy the app to your Rapberry Pi (it has to have SSH enabled on the Pi, running something like Raspbian) 将应用程序部署到您的Rapberry Pi(必须在Pi上启用SSH,并运行Raspbian之类的功能)
  5. Attach your debugger from VS 2019 to the Pi over SSH. 通过SSH将VS 2019中的调试器连接到Pi。

I wrote an article about this exact topic with pictures and a powershell script here: https://medium.com/@lewwybogus/debugging-your-net-core-3-app-on-your-raspberry-pi-with-visual-studio-2019-9662348e79d9?source=friends_link&sk=33e0da85e07e45234a7804d5801110a1 我在这里写了一篇有关此确切主题的文章,其中包含图片和Powershell脚本: https : //medium.com/@lewwybogus/debugging-your-net-core-3-app-on-your-raspberry-pi-with-visual -studio-2019-9662348e79d9?source = friends_link&sk = 33e0da85e07e45234a7804d5801110a1

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 cshtml ASP.NET 内核中调试 JavaScript 脚本(使用 Chrome 浏览器或在 Visual Studio 2019 中)? - How to debug JavaScript script in cshtml ASP.NET core ( by using Chrome browser or in Visual Studio 2019)? 如何在 Visual Studio 2019 中调试 ASP.Net MVC - How to debug ASP.Net MVC in Visual Studio 2019 如何使用Visual Studio 2019发布ASP.NET应用程序? - How to publish asp.net application with Visual Studio 2019? 如何使用 ASP.NET 核心 web 应用程序托管 web 页面? - How can I host web pages with an ASP.NET Core web application - API project in Visual Studio? 无法使用 Visual Studio 2019 ssh 调试树莓派 4 - Cannot use visual studio 2019 ssh debug with raspberry pi 4 Visual Studio 2019 中缺少 ASP.NET 核心 Web 应用程序模板和所有 ASP.Net 核心模板 - Missing ASP.NET Core Web Application Template and all ASP.Net Core Templates in Visual Studio 2019 Visual Studio 2019 16.3.6 ASP.NET 内核 Web 应用项目模板确实允许 asp.net 内核版本选择 - Visual Studio 2019 16.3.6 ASP.NET Core Web Application project template does allow asp.net core version selection ASP .NET Core 应用程序在 Visual Studio 2019 中找不到引导程序 5 - ASP .NET Core application can't find bootstrap 5 in Visual Studio 2019 如何在Visual Studio 2010中更快地调试ASP.NET应用程序 - How can I debug asp.net applications more quickly in Visual Studio 2010 如何使用 Visual Studio 2019 在 Docker 容器中运行 ASP.NET Core 3.1 项目? - How to run an ASP.NET Core 3.1 project in a Docker container with Visual Studio 2019?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM