C# IntelliTrace独立采集器

C# IntelliTrace独立采集器,c#,winforms,visual-studio,visual-studio-2015,intellitrace,C#,Winforms,Visual Studio,Visual Studio 2015,Intellitrace,我想将min winforms应用程序设置为使用IntelliTrace独立收集器 我下载了应用程序,但我似乎找不到如何将其设置为winforms 我想应该是在这个链接中,但我不太明白: 有人有什么建议吗?我试图在谷歌上找到没有运气的例子 致意 Rob您需要使用IntelliTrace独立收集器来启动WinForm应用程序。你可以从你发布的链接中找到参考资料 PowerShell cmdlet适用于web应用程序或sharepoint应用程序。对于其他托管应用程序,您应该使用的命令是 \Inte

我想将min winforms应用程序设置为使用IntelliTrace独立收集器

我下载了应用程序,但我似乎找不到如何将其设置为winforms

我想应该是在这个链接中,但我不太明白:

有人有什么建议吗?我试图在谷歌上找到没有运气的例子

致意
Rob

您需要使用IntelliTrace独立收集器来启动WinForm应用程序。你可以从你发布的链接中找到参考资料

PowerShell cmdlet适用于web应用程序或sharepoint应用程序。对于其他托管应用程序,您应该使用的命令是


\IntelliTraceSC.exelaunch/cp:/f:

您需要使用IntelliTrace独立收集器来启动WinForm应用程序。你可以从你发布的链接中找到参考资料

PowerShell cmdlet适用于web应用程序或sharepoint应用程序。对于其他托管应用程序,您应该使用的命令是


\IntelliTraceSC.exelaunch/cp:/f:

我有一个powershell脚本,用于从控制台应用程序收集跟踪。这对于winforms应该是一样的(我已经针对WPF应用程序对它进行了测试,它可以正常工作)。我唯一不确定的一步是你需要什么样的“收集计划”——这可能需要很多实验

祝你好运

#1) Create a C:\IntelliTrace   and place this script in there
$ROOT_DIR = $PSScriptRoot

#2) Extract the intellitrace cab file to C:\IntelliTrace\IntelliTraceCollection      folder

#3) Where is the path to the winforms executable?
$Prog = "C:\path\to\my\winformsApplication.exe"

#4) Where do you want to save the trace?
$OutputLog = "$ROOT_DIR\MyTrace.iTrace"

#Note use of relative paths
$IntelliTraceStandAlone = "$ROOT_DIR\IntelliTraceCollection\IntelliTraceSC.exe"

#YOU WILL MOST LIKELY NEED A DIFFERENT COLLECTION PLAN
$collectionPlan = "$ROOT_DIR\IntelliTraceCollection\collection_plan.ASP.NET.default.xml"

#5) Run it..
#Note "dot space $IntelliTrace..."
. $IntelliTraceStandAlone launch /logfile:$OutputLog  /collectionplan:$collectionPlan $Prog

我有一个powershell脚本,用于从控制台应用程序收集跟踪。这对于winforms应该是一样的(我已经针对WPF应用程序对它进行了测试,它可以正常工作)。我唯一不确定的一步是你需要什么样的“收集计划”——这可能需要很多实验

祝你好运

#1) Create a C:\IntelliTrace   and place this script in there
$ROOT_DIR = $PSScriptRoot

#2) Extract the intellitrace cab file to C:\IntelliTrace\IntelliTraceCollection      folder

#3) Where is the path to the winforms executable?
$Prog = "C:\path\to\my\winformsApplication.exe"

#4) Where do you want to save the trace?
$OutputLog = "$ROOT_DIR\MyTrace.iTrace"

#Note use of relative paths
$IntelliTraceStandAlone = "$ROOT_DIR\IntelliTraceCollection\IntelliTraceSC.exe"

#YOU WILL MOST LIKELY NEED A DIFFERENT COLLECTION PLAN
$collectionPlan = "$ROOT_DIR\IntelliTraceCollection\collection_plan.ASP.NET.default.xml"

#5) Run it..
#Note "dot space $IntelliTrace..."
. $IntelliTraceStandAlone launch /logfile:$OutputLog  /collectionplan:$collectionPlan $Prog
  • 下载

  • 双击.exe文件

  • 将IntelliTraceCollectio.cab文件放入文件夹中。 例如D:\Intellitrace

  • 以管理员身份打开命令提示符 转到IntelliTraceCollectio.cab的指定路径 然后输入命令

    展开/f:*IntelliTraceCollection.cab.

    (别忘了在末尾加上

  • 使用命令提示符, 进入

    icacls“D:\IntelliTrace”/grant

    (D:\Intellitrace是上面指定的文件夹路径)

  • 再创建一个文件夹D:\IntelliTraceLog(用于存储收集的intellitrace日志文件)

  • 要从应用程序收集数据,请输入command

    D:\Intellitrace\IntelliTraceSC.exe启动/cp:“D:\Intellitrace\collection\u plan.ASP.NET.default.xml”/f:“C:IntelliTraceLog\MyApp.itrace”“D:\xyz\abc.exe”

(D:\xyz\abc.exe是要运行的文件的实际路径)

  • 现在您将在D:\IntelliTraceLog中获得一个itrace文件。在VisualStudioEnterprise中打开它。选择任何异常并单击运行调试
      • 下载

      • 双击.exe文件

      • 将IntelliTraceCollectio.cab文件放入文件夹中。 例如D:\Intellitrace

      • 以管理员身份打开命令提示符 转到IntelliTraceCollectio.cab的指定路径 然后输入命令

        展开/f:*IntelliTraceCollection.cab.

        (别忘了在末尾加上

      • 使用命令提示符, 进入

        icacls“D:\IntelliTrace”/grant

        (D:\Intellitrace是上面指定的文件夹路径)

      • 再创建一个文件夹D:\IntelliTraceLog(用于存储收集的intellitrace日志文件)

      • 要从应用程序收集数据,请输入command

        D:\Intellitrace\IntelliTraceSC.exe启动/cp:“D:\Intellitrace\collection\u plan.ASP.NET.default.xml”/f:“C:IntelliTraceLog\MyApp.itrace”“D:\xyz\abc.exe”

      (D:\xyz\abc.exe是要运行的文件的实际路径)

      • 现在您将在D:\IntelliTraceLog中获得一个itrace文件。在VisualStudioEnterprise中打开它。选择任何异常并单击运行调试

      您应该向我们提供更多详细信息。您所说的“我似乎无法找到如何将其设置为winforms”到底是什么意思?您应该提供更多详细信息。“我似乎找不到如何将其设置为winforms”的确切含义是什么?