请问哪有在vs2003中断点调试的具体实例的教程下载啊?谢谢!问题解决后马上结帖!小弟用vs2003学做c#+asp.net网页快一年了!每次程序中报错都是根据经验来来改正;可从来没用到过什么调试啊!(我只知道怎样设断点,按F5是开始调试,F11是逐语句调试,F10是逐过程调试)每次程序有错都是花好长时间来改正,特别遇到那些“未将对象的引用设置到对象的实例”错误,更是头痛啊!因此想学一下在vs2003中断点调试的具体实例,可在网上到处找了,真没找到具体实例的教程啊!大侠如果知道哪有这些实例的教程,能不能给个网址看看?先谢了!问题解决后马上结帖!

解决方案 »

  1.   

    好像还没有看到过这样的教程。
    不过楼主可以多设置几个断点,然后运行你的程序,按F10逐步调试,如果觉得没有错误,可以直接按运行的按钮,如果两个断点之间没有错误,它会立刻执行到下一个断点处。
    楼主既然会根据经验来来改正,知道大概错误的地方,也就只需要在部分范围内设置断点了
    如果想知道当时的变量,语句的值,可以选中变量或者语句,按下Ctrl+Alt+Q,弹出的框中可以看到当时的数据的值。
      

  2.   

    sunnystar365(一个人的天空) 你好,可要多做几个具体的例子才能真正能灵活的应用调试来改错啊!有哪位大侠知道这样的具体实例的教程的网址啊?说一下啊!谢谢! (没有这样的网址,贴一段例子的代码也好啊!)
      

  3.   

    我见过一本讲VB.net调试的书,其实大部分是将VS.net2003调试器的
    叫:<<VB.NET调试全攻略>>  Mark Pearce著 谢俊 尹浩琼译
        清华大学出版社不过也别对这书抱有太大希望,这些东西本来就很少,只能矬子里拔个将军了,
    你要有兴趣可以找来看看。
    最好还是多练习,积累些经验,在MSDN中看写文档可能还比较有帮助。
      

  4.   

    Inyoureyes(最深的蓝)你好,有没有c#的调试书?给个书名,我去买!
      

  5.   

    请问哪有在vs2003中断点调试的具体实例的教程下载啊?谢谢!问题解决后马上结帖!小弟用vs2003学做c#+asp.net网页快一年了!每次程序中报错都是根据经验来来改正;可从来没用到过什么调试啊!(我只知道怎样设断点,按F5是开始调试,F11是逐语句调试,F10是逐过程调试)每次程序有错都是花好长时间来改正,特别遇到那些“未将对象的引用设置到对象的实例”错误,更是头痛啊!因此想学一下在vs2003中断点调试的具体实例,可在网上到处找了,真没找到具体实例的教程啊!大侠如果知道哪有这些实例的教程,能不能给个网址看看?先谢了!问题解决后马上结帖!
      

  6.   

    嗯,Ctrl+Alt+Q方法不错,挺管用。
      

  7.   

    《Programming ASP.NET, 2nd Edition》,O'Reilly 出版,电子版里面第七章(Chapter 7. Tracing, Debugging, and Error Handling)是专门说调试的,虽然端但是很实用,我就是看完这一段才开始调试的。
    如果找不到也没有关系,把有关的所有调试窗口都打开,再把熟悉的程序调试一下,基本上就差不多了,把Autos先看一看就什么也明白了。immediate window 的用法我摘了一段:
    The Immediate window allows you to type almost any variable, property, or expression and immediately see its value. To open the Immediate window, do any of the following:Press Ctrl+Alt+I.Select Immediate from the Debug/Windows menu commands.Click on the Windows icon of the Debug toolbar and select Immediate.You can enter expressions for immediate execution in the Immediate window. If you want to see the value of an expression, prepend it with a question . For instance, if the breakpoint is on the line shown in Figure 7-12, you can see the value of the integer i by entering:?iin the Immediate window and pressing Enter. Figure 7-13 shows the result of that exercise; additionally, this figure shows the process of assigning a new value to the variable i and then viewing its value again.
    figure7-13 begin
    ?i
    z
    i=6
    6
    ?i
    6
    figure7-3 end
    You can clear the contents of the Immediate window by right-clicking anywhere in the window and selecting Clear All. Close the window by clicking on the X in the upper-right corner. If you close the window and subsequently bring it back up in the same session, it will still have all the previous contents.