정보, 통신, 기술/ASP.NET과 C#

ASP.NET에서 "프로세스에 연결"로 디버깅하기

최윤호 2010. 6. 22. 22:24
반응형
1. VS2008의 디버기에서 "프로세스에 연결"로 다른 프로세스에 연결해 디버깅을 할 수 있다.

2. 웹 프로젝트의 경우 w3wp 프로세스에 연결해 디버깅 할 수 있는데 w3wp가 여러개가 실행되는 상황에서, 자신의 사이트와 상관없는 w3wp에 연결하면 중단점이 정상작동하지 않으면서 "이 문서의 기호가 로드되지 않았습니다."라는 메시지가 나온다.

3. 아마도 web site는 안되고, web application만 프로세스에 연결 디버깅이 되는 것 같다. "아마도"인 것은 테스트해 본 바로는 안되었는데, web site는 안된다는 정확한 내용을 Microsoft 웹 사이트에서 찾지 못 했다.

4. w3wp에 연결해 디버깅을 해도 코드의 수정은 안된다. 중단점을 걸어 놓고 코드를 수정하려하면 "편집하며 계속하기"가 안된다는 안내 창이 나온다. 안내 메시지는 "이미 실행중인 프로세스의 연결한 것 혹은...." 어쩌고, 저쩌고 하는 내용이다.
==> 정말로 안되는 것인지, 아니면 뭔가 추가 설정이 필요한 것인지 아직도 의문이다. 흠... 어디가서 삽질을 더 해봐야 할 것 같은데 어디가서 삽질해야 하는지도 잘 모르겠다ㅡㅡ;;

ASP.NET 디버깅 개요
http://msdn.microsoft.com/ko-kr/library/ms227556(VS.90).aspx

웹 페이지에 디버거 사용
http://msdn.microsoft.com/ko-kr/library/ms227431(v=VS.90).aspx

ASP.Net Edit and Continue in Visual Studio 2005/2008
http://whyiamright.wordpress.com/2007/12/20/aspnet-edit-and-continue-in-visual-studio-2005/

Debug Your ASP.NET Application that Hosted on IIS : Process Attach and Identify which process to attach
http://www.codeproject.com/KB/aspnet/ProcessAttache.aspx

VS2005에서 원격 디버깅
http://blog.naver.com/saltynut/120021507832

Please give me the steps how to use Edit-continue in Vs2005?
http://social.msdn.microsoft.com/Forums/en/vsdebug/thread/0fca702e-f4e5-4261-bfad-74a9d3aa8928

Debugging an ASP.NET Web Application
http://www.dotnetjohn.com/articles.aspx?articleid=66
http://www.dotnetjohn.com/articles.aspx?articleid=55

VS 2005 - Unable to attach to w3wp.exe (Managed) in Server 2008
http://social.msdn.microsoft.com/forums/en-US/vsdebug/thread/58866504-29ea-44b3-836e-3295913809da/

Attaching debugger to w3wp.exe using nice and easy keyboard shortcut
http://blogs.msdn.com/b/jannemattila/archive/2008/10/30/attaching-debugger-to-w3wp-exe-using-nice-and-easy-keyboard-shortcut.aspx

Visual Studio 2010 Web Developer Express Tools.Attach to Process is not exists
http://stackoverflow.com/questions/2704181/visual-studio-2010-web-developer-express-tools-attach-to-process-is-not-exists

Visual Studio 2010 Beta does not attach to w3wp.exe automatically on debugging IIS7
http://stackoverflow.com/questions/1847247/visual-studio-2010-beta-does-not-attach-to-w3wp-exe-automatically-on-debugging-ii

Debug Features : 6. COM+ 서버 응용 프로그램에 대한 F5 디버깅 방법
http://www.sysnet.pe.kr/Default.aspx?mode=2&sub=0&pageno=0&detail=1&wid=335

Google - web site, attach process, executable code, edit and continue
http://www.google.com/search?hl=ko&rls=com.microsoft%3Ako%3AIE-SearchBox&q=web+site+Attach+to+process&aq=f&aqi=&aql=&oq=&gs_rfai=

http://www.google.com/search?hl=ko&rls=com.microsoft%3Ako%3AIE-SearchBox&q=Attach+to+w3wp+No+executable+code&btnG=%EA%B2%80%EC%83%89&aq=f&aqi=&aql=&oq=&gs_rfai=

http://www.google.com/search?hl=ko&rls=com.microsoft%3Ako%3AIE-SearchBox&q=web+app+program+Edit+and+continue+assembly+not+load&aq=f&aqi=&aql=&oq=&gs_rfai=

http://www.google.com/search?hl=ko&rls=com.microsoft%3Ako%3AIE-SearchBox&q=asp.net+Changes+are+not+allowed+when+the+debugger+has+been+attached+to+an+already+running+process+or+the+code+being+debugged+was+optimized+at+build+or+run+time&aq=f&aqi=&aql=&oq=&gs_rfai=

반응형