0
로깅 프로젝트에서 작업합니다. 데이터베이스의 메서드 매개 변수 값을 저장하고 싶습니다. 이 값들은 어떻게 얻을 수 있습니까? FirstChanceException 이벤트에서 "Test"메서드의 매개 변수 값을 가져 오려고합니다.C에서 메소드 On의 값 가져 오기 예외 #
class Program
{
private static void Main(string[] args)
{
AppDomain.CurrentDomain.FirstChanceException += CurrentDomain_FirstChanceException;
Test(100);
}
private static void Test(int i)
{
throw new OverflowException();
}
private static void CurrentDomain_FirstChanceException(object sender,
System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
{
//I Want To Get Parameter Value of Test Method
}
}
여기에 관해서 많은 다른 질문은 ... 할 수 없습니다. –
가능한 중복 [.NET에서 호출 스택의 각 프레임에 대한 매개 변수 값을 가져올 수 있습니까?] (http://stackoverflow.com/questions/819576/is-it-possible-to-get-parameters-values- 각 프레임 인 - 콜 - 스택 - 인 - 넷 (net-in-call-in-call) – Dirk