본문 바로가기

.NET/Debugging

(35)
.NET Exceptions: Quick WinDbg/SOS tip on how to dump all the .NET exceptions on the heap 출처 :http://blogs.msdn.com/b/tess/archive/2009/04/16/net-exceptions-quick-windbg-sos-tip-on-how-to-dump-all-the-net-exceptions-on-the-heap.aspx Since a .net exception is a .NET object like any other, it gets stored on the GC heap when you (or some code you call) calls new XXException(). This means that if you have a memory dump of a process you can dump out all the recent exceptions that have occ..
풀 덤프 파일을 남기는 방법 [출처] 풀 덤프 파일을 남기는 방법|작성자 techshare 출처: http://blog.naver.com/techshare?Redirect=Log&logNo=100121443615&from=postView sos나 psscor 같은 도구들이 나오면서 닷넷 응용 프로그램의 디버깅에서 windbg 위치가 다소 상향되었지요. ^^ 개발자 PC에서 재현되지 않는 문제에 대해 디버깅을 해야 하는 상황이라면, windbg를 이용해서 현재 실행중인 프로그램에 연결해서 살펴보는 것이 최선일 것입니다. 하지만, 만약 그것이 "운영 서버"라면 차선책으로 "풀 덤프"를 고려해 볼 수 있습니다. (또는, 저처럼 서툰 windbg 사용자라면 고객 앞에서 버벅거리는 것보다 회사에 와서 차근 차근히 검색도 해가면서 풀어보는 것이 더욱 현실적인 이유가 될 수 있겠고. ^^) 이번 글에서는,..
닷넷 프로파일러 - ICorProfilerInfo::GetILFunctionBody 메소드 버그 [출처] 닷넷 프로파일러 - ICorProfilerInfo::GetILFunctionBody 메소드 버그|작성자 techshare http://blog.naver.com/techshare/100172047271 위에서 퍼온글입니다. 얼마 전 고객사에서 희한한 버그가 발생했습니다. Visual Basic .NET으로 만들어진 어셈블리였는데, 구현된 클래스 중에서 별로 특징적이지도 않은 그 메소드 하나만 후킹을 하려고 하면 꼭 System.BadImageFormatException - "Bad class token" 예외가 발생하는 것이었습니다. 오류를 재현하려고 해당 메소드의 코드를 IL 레벨에서 복사를 한 다음, 제가 만든 동일한 VB 소스 코드로 옮겨 보았으나 이제는 오류가 발생하지 않았습니다. 즉, 그 VB.NET 어셈블리에 바로 그 코드가 존재했을 때에만 오류가 발생하는 희한한 현상이었던 것입니다. 조사 결과, GetILFun..
How to troubleshoot ASP.NET application hang with memory dump http://www.codeproject.com/Articles/384647/How-to-troubleshoot-ASP-NET-application-hang-with 위에서 퍼온 글입니다.IntroductionA production IIS server has been reported hang once a day. We tried every possible ways to find and remedy the situation with no luck. Fortunately, from memory dump, we found some clues that eventually pinpoint the source of problem. In here, I will put all the information and exp..
How to: Set Up Remote Debugging http://msdn.microsoft.com/en-us/library/bt727f1t.aspx
Know Program Database file (PDB) http://www.codeproject.com/Articles/349076/Know-Program-Database-file-PDB Introduction This article helps developer who are beginner or intermediate level but don't have much understanding about the importance of PDBs and why they are required.What is PDB : PDB is acronymn for Program database file A PDB file is typically created from source files during compilation. It stores a list of all symb..
.NET 쓰레드 콜 스택 덤프 (5) http://blog.naver.com/techshare/100152100434 위에서 퍼온 글입니다. .NET 쓰레드 콜 스택 덤프 (5) - ICorDebug 인터페이스 사용법 개발자 2012/02/26 01:32 http://blog.naver.com/techshare/100152100434 .NET 쓰레드 콜 스택 덤프 (1) - 다른 쓰레드의 스택 덤프 구하는 방법 .NET 쓰레드 콜 스택 덤프 (2) - Managed Stack Explorer 소스 코드를 이용한 스택 덤프 구하는 방법 .NET 쓰레드 콜 스택 덤프 (3) - MSE 소스 코드 개선 .NET 쓰레드 콜 스택 덤프 (4) - .NET 4.0을 지원하지 않는 MSE 응용 프로그램 원인 분석 .NET 쓰레드 콜 스택 덤프 (5) -..
Crash덤프만들고 디버깅하기 Article ID: 892277 - Last Review: May 18, 2007 - Revision: 2.4Troubleshooting ASP.NET using WinDbg and the SOS extensionView products that this article applies to.ASP .NET Support Voice ColumnTroubleshooting ASP.NET using WinDbg and the SOS extensionTo customize this column to your needs, we want to invite you to submit your ideas about topics that interest you and issues that you want to see ad..