나는 아주 간단한 aspect를 만들었고 그것을 디버깅 할 때 문제를 발견했다. (코드 참조). 메소드 출구에 중단 점을 설정하고 실제로 "입력"메소드 내에서 충돌합니다. PostSharp 1.5, Visual Studio 2008 SP1
알려진 버그입니까? 다른 해결 방법이 있습니까?PostSharp 및 디버깅 문제가 있습니까?
class Program
{
[MyAspect]
static void Main(string[] args)
{
Console.WriteLine("body");
} // setting breakpoint here
}
[Serializable]
class MyAspect : OnMethodBoundaryAspect
{
public override void OnEntry(MethodExecutionEventArgs eventArgs)
{ // hits here actually! (debug mode)
Console.WriteLine("entry"); // hits here actually! (release mode)
}
public override void OnExit(MethodExecutionEventArgs eventArgs)
{
Console.WriteLine("exit");
}
}
다시 작성/정리로 아무 것도 변경되지 않습니다. 샘플을 실행 해 보셨습니까? – skevar7
이것은 .pdb 문제인 것 같습니다. PostSharp는 어셈블리 만 수정하지만 디버그 기호 파일은 수정하지 않습니다. – boj