Learning .NET Debugging – 推薦

來源:互聯網
上載者:User
    這是一篇講解如何學習.NET調試技術的文章,作者Tess就職於微軟,在調試方面有近10年的實踐經驗,她的Blog裡介紹了大量調試技巧和學習方法!文中作者向大家介紹了自己的學習方法: “ I try to learn things is by "teaching"”,並從不同方面和角度加以說明,在文章最後作者還列出了大量非常有價值的參考資源的網址,正所謂“授人以魚不如授之以漁”,作者的精神十分值得我們學習。

    在文章中作者還提到她準備寫一個實踐.NET調試技術的系列文章:

  • Information and Setup Instructions
  • Lab 1: Hang
  • Lab 1: Hang - Review
  • Lab 2: Crash
  • Lab 2: Crash - Review
  • Lab 3: Memory
  • Lab 3: Memory - Review
  • Lab 4: High CPU hang
  • Lab 4: High CPU hang - Review
  • Lab 5: Debugging Challenge

    我們真的是很幸運,因為這篇文章是一個月以前寫的,在過去的這一個月裡,作者已經非常勤奮地把這個系列的文章完成了很多,我們馬上就可以去跟著作者循序漸進地去學習.NET調試技術啦!作者如此之勤勞讓我真是無比汗顏,再次敬佩一下!

    本來我是想翻譯出來分享給大家的,但是通讀一遍以後感覺實在沒有這個必要,文章內容其實都很簡單,就別再經過我的二次“汙染”了,如果你有心想學好.NET調試技術,相信你就一定會有耐心仔細閱讀這篇幾百字的短文吧!
    最後,關於作者推薦的那本Debugging Microsoft .NET 2.0 Applications ,在China-pub可以買到原版的書,不過價格非常不便宜哦!網上也是能夠下載到電子版的,最近國內也出了一本關於調試的非常優秀的圖書:《Windows使用者態程式高效排錯》想必大部分朋友已經知道了,但是真正認真看過的可能還不多吧!

    最最後,歡迎大家加入部落格園社區裡的debug小組空間和,讓我們在這裡共同探討.NET調試技術,共同學習,共同進步!組內會有更多的資源提供哦!留言和加入debug小組都有可能獲得上面的電子書哦~~~

From:http://blogs.msdn.com/tess/archive/2008/01/30/learning-net-debugging.aspxLearning .NET debugging

I often get questions like How do I learn .net debugging? What books should I read? Where can I find more information?

I know everyones learning style is different so this might not be the best way for you, but the way I try to learn things is by "teaching". For example the way I started out with .net debugging was by putting together a really silly .net debugging web cast series with one of my colleagues. Looking back at them now they make me laugh, both because seeing yourself on video is just horrible, and because of how convoluted we made things because of how little experience we had with debugging .net.

The reason learning by teaching works for me is because if I have to explain something to someone else I do a lot more research.  If I read a book or go through a course I tend to skip over things and think "yeah, I pretty much know how that works so I won't worry about it" so I never delve into those things.  Blogging also makes me have to research a lot more and not leave it at "I have a pretty good idea what the issue is" but instead go deeper and really understand the issues, which gives me knowledge that I can reuse in other situations.

The other obvious and natural benefit from learning by teaching is that you spread the wealth and oftentimes I find that if I really go through with actually presenting it, I also get a lot of feedback helping me understand the issues even further.  Sometimes though I just leave it at researching as though I would explain the topic to someone else but never end up doing it (because the issue is really well explained already somewhere else).

The only drawback I see with this for me is that when you're in the learning phase you don't really have the experience that I feel makes a good teacher, and sometimes like in the case of the debugging web casts you do things in convoluted ways in the beginning because you don't know the shortcuts.  Still I think it is a worthwhile learning method, especially on topics that are not all that explored and where there is not much good course/training material in existence.

With debugging specifically, I think there is no better way of learning debugging than creating your own issues and debugging them.  For example, set up a demo that you know will crash the process or hang the process or cause a memory leak and debug it.  It works extremely well for the beginning stages since you know what you are expected to find. 

I was thinking of starting a quick series of demos that can be used to practice debugging.  Most of them items that I have already posted solutions to here, but with code and "lab" hints. Would that be of interest? if you are interested, just send a quick yes in the comments or contact me by email so I can gauge if it is something that would make sense to do...

Ok, that was a whole lot of rambling about my learning style:)  having said this... here are some blogs that I subscribe to with good debugging/asp.net information if you want to learn debugging or keep your debugging skills up to date...

Support blogs with debugging case studies

Speaking of which... (Johan Straarup) http://blogs.msdn.com/johan
A developers stayings (Carlo Cardella) http://blogs.msdn.com/carloc
Notes from a dark corner (Doug Stewart) http://blogs.msdn.com/dougste
Cheshire's blog (Jim Cheshire) http://blogs.msdn.com/jamesche
ASP.NET debugging (Tom Christian) http://blogs.msdn.com/tom
Nico's weblog (Nicolas Dietrich) http://blogs.msdn.com/nicd
Solving the world's problem, one support incident at a time... (Lucas Canavan) http://blogs.msdn.com/lucascan
Todd Carter's weblog (Todd Carter) http://blogs.msdn.com/toddca

Other debugging related blogs:

Debugging toolbox - http://blogs.msdn.com/debuggingtoolbox
Dotnet debug - http://dotnetdebug.net
NT Debugging - http://blogs.msdn.com/ntdebugging
John Robbin's blog - http://www.wintellect.com/cs/blogs/jrobbins/default.aspx

Other ASP.NET blogs:

ASP.NET Team blog - http://weblogs.asp.net/aspnet-team
Scott Gu's blog - http://weblogs.asp.net/scottgu

CLR Blogs:

CLR, Architectures and stuff - http://blogs.msdn.com/patrick_dussud
Maoni's weblog - http://blogs.msdn.com/maoni

and dont forget the Debugging Microsoft .NET 2.0 Applications book by John Robbins

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.