tailieunhanh - Professional ASP.NET 3.5 in C# and Visual Basic Part 118
Professional in C# and Visual Basic Part 118. Building on the revolutionary release, adds several key new developer features including AJAX, LINQ, and a new CSS designer in Visual Web Developer 2008. The dramatic reduction in code that developers realized from the more than 50 new server controls in now allows developers the time to make their applications more interactive with AJAX, to work with data in their preferred language with LINQ, and to build visually attractive and consistent standards-based sites with CSS. . | Chapter 24 Debugging and Error Handling Error Notifications During an interactive debugging session Visual Studio now strives to assist you with informative Error Notifications. These notifications not only report on events such as unhandled exceptions but also offer context-sensitive troubleshooting tips and next steps for dealing with the situation. Figure 24-15 shows an unhandled NullReferenceException along with the good advice that we might try using the new keyword to create an object instance before using it. Oops Edit and Continue Lack of Support or Edit and Refresh Visual Basic 6 was all about developing things quickly and its most powerful feature was the Edit and Continue feature which gave you capability to change code during a debugging session without restarting the session. In break mode you could modify code fix bugs and move on. The version of the CLR has restored this feature for both C and Visual Basic. Although this has a large number of developers cheering unfortunately this feature is not available to developers. In your assembly is compiled not by Visual Studio but by the runtime using the same technique it does during a normal Web page request by a browser. To cooperate with the debugger and support Edit and Continue within a number of fantastically complex modifications to runtime would have been required by the development team. Rather than including support for this feature developers can use page recycling. This means that code changes are made during a debugging session and then the whole page is refreshed via F5 automatically recompiled and re-executed. Basically includes much improved support for Edit and Refresh but not for Edit and Continue. Just My Code Debugging A new concept in the .NET CLR is called Just My Code debugging. Any method in code can be explicitly marked with the new attribute DebuggerNonUserCode . Using this explicit technique and a number of 1130 .
đang nạp các trang xem trước