jetbrains-ide - "This profiling configuration does not apply to the selected run configuration"在 JetBrains Rider 中意味着什么以及如何解决它?

标签 jetbrains-ide rider

我正在尝试运行分析 session following the instructions ,但我停留在第一步,它说选择一个分析配置,因为它们都被禁用,并显示错误消息“此分析配置不适用于所选的运行配置”。

这是什么意思?可能是什么原因造成的?我该如何解决这个问题?

Rider profiling configuration showing error message

Linux Mint 19、Rider 2020.1.3 通过 jetbrains 工具箱安装、dotnet core 通过 asdf-vm 安装。

最佳答案

这不是一个真正的问题,我认为只是一个 UI 错误。

在工具栏中,分析配置下拉菜单也是一个用于运行当前运行/调试配置的按钮。如果将运行/调试配置设置为普通的.NET静态方法(通常是Main函数),则将再次启用分析配置按钮。单击它将运行 Main 函数并正常对其进行分析。

但是您不能使用此按钮来分析单元测试 session 。 相反,当您单击配置所选单元测试时,会自动应用此设置: enter image description here

只需选择你想要的配置,启动单元测试,它就会起作用。

这个逻辑在菜单中更加清晰。在Run菜单中,第三项Profile XXX using YYY分析配置具有相同的图标。将鼠标悬停在分析配置按钮上将显示一个工具提示,其中包含一条与菜单项相同的消息。

并且您无法在Run 菜单中运行单元测试,而是有一个Tests 菜单。


还有一件事:Linux 中的 Rider 分析支持不完整,我建议您在 Windows 中进行分析。

关于jetbrains-ide - "This profiling configuration does not apply to the selected run configuration"在 JetBrains Rider 中意味着什么以及如何解决它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63170374/

相关文章:

intellij-idea - IntelliJ 想法 : How to create a custom inspection rule

profiling - Rider 调试期间的性能分析

f# - 如何在 Jetbrains Rider 中配置 F# 检查?

c# - JetBrains Rider 带着 watch 运行

resharper - 在 Rider 和 ReSharper 之间共享代码样式设置

android-studio - 如何在Android Studio中选择代码中的多个位置(sublime)?

laravel - 如何修复 PhpStorm 中的 "External file changes sync may be slow: The current inotify(7) watch limit is too low."

javascript - IntelliJ IDEA 显示有错误的 JavaScript 文件

git - 如何在 IntelliJ 中使用 Bitbucket 作为存储库

nuget - 如何将从 NuGet Bootstrap 包下载到 wwwroot?