做阿里巴巴网站可以贷款吗,seo如何快速排名百度首页,网站建设免费模板,网站全背景做多大使用Dapr 编写的是一个多进程的程序, 两个进程之间依赖于启动顺序来组成父子进程#xff0c;使用Visual Studio 调试起来可能会比较困难#xff0c;因为 Visual Studio 默认只会把你当前设置的启动项目的启动调试。好在有Visual Studio 扩展#xff08;Microsoft Child Proc…使用Dapr 编写的是一个多进程的程序, 两个进程之间依赖于启动顺序来组成父子进程使用Visual Studio 调试起来可能会比较困难因为 Visual Studio 默认只会把你当前设置的启动项目的启动调试。好在有Visual Studio 扩展Microsoft Child Process Debugging Power Tool 插件可以支持。这个思路来自 https://github.com/dapr/dotnet-sdk/issues/401#issuecomment-7475636951、需要安装 PowerShell 7 / Core (可使用命令行dotnet tool install --global PowerShell)2、需要安装 Visual Studio 扩展 Microsoft Child Process Debugging Power Tool 2022安装插件后启动 Visual Studio可以在 Debug - Other Debugging Targets 中找到 Child Process Debugging Settings。然后你可以按照下图的设置开启此项目的子进程调试我这里用的一个示例程序是 https://github.com/geffzhang/lab-dapr-with-famous-actors 结合Dapr 和 Orleans 7.0 的一个Demo程序。3、项目调试属性设置保存后会自动生成文件 launchSettings.jsonlaunchSettings.json 内容也可以通过文件直接修改效果等同文件如下Dapr-PWSH: { commandName: Executable, executablePath: pwsh, commandLineArgs: -Command \dapr run --app-id modDaprWithFamousActors --app-port 5000 --app-protocol grpc --log-level debug -- dotnet run --no-build\, workingDirectory: ., environmentVariables: { ASPNETCORE_ENVIRONMENT: Development }, nativeDebugging: true, dotnetRunMessages: true, applicationUrl: http://localhost:5000;https://localhost:5001}现在你只需要开始调试你的程序那么你程序中启动的新的子进程都将可以自动加入调试。效果如下值得注意的是只要启动了本机代码调试就不能在程序暂停之后修改代码了像平时调试纯托管代码那样还有一个方案是sidekick