I 콘솔 응용 프로그램에서 추적을 수집하는 데 사용하는 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
자세한 내용을 알려주십시오. "당신은 내가 어떻게 그것을 winforms로 설정했는지 찾아 낼 수 없습니다"라는 말은 정확히 무엇을 의미합니까? –