Recent Articles

How to Use the Exception Assistant
As you test an ASP.NET application, you may encounter runtime errors that prevent an application from executing. When that happens, an exception is thrown. In many cases, the application anticipates these exceptions and provides code to catch them and process them appropriately.

ASP.NET: Testing a file-system web site with IIS
When you run a file-system web site, it runs under the ASP.NET Development Server by default. Because this server has limitations, however, you'll want to be sure to test a file-system web site under IIS as well as under the development server.

ASP.NET School For The Online Mind
A New Jersey firm now offers three online courses in ASP.NET programming, delivered through a browser. TeachMeIT recently added Programming with Microsoft ASP to its online curriculum.

Blinq Instantly Builds ASP.NET Sites
Microsoft's Web Language Integrated Query tool called Blinq can generate ASP.NET websites based on database schema.

Atlas Can Lift ASP Development
Microsoft offers its version of an Ajax framework called Atlas, which integrates cross-browser script libraries with ASP.NET server-side development.

Mainsoft Brings ASP.NET To WebSphere
The company's MainWin for J2EE, Portal Edition, enables IBM customers to run ASP.NET applications natively on the WebSphere Portal.

ASP.NET - Emailing Form Content
One of the problems that I first encountered when I was learning the ropes was that a book can never tell you everything.

Doing The Walkthrough With ASP
Online options exist for learning how to work with ASP.Net and Microsoft's Visual Studio, with free and fee choices available.

ASP.Net: Great Products, Great Caching
Fans of ASP.Net products can vote for their choice in the asp.netPro Readers' Choice Awards online; also, Gadgetopia's Deane Barker praises the "Output Cache" directive.

ASP.NET “How Do I” Video Series
Microsoft put together a video series called "How Do I." The purpose behind the series is to help educate developers by answering common questions regarding ASP.NET 2.0.

ASP Leads JSP In Job Openings
It would not be a bad idea to be skilled in both ASP and JSP, as a number of open positions found in a recent job search asked for the two skill sets.

IIS and ASP: Microsoft's Server
Despite Microsoft's dominance of everything to do with computers, their web server software sits on a relatively low 20% market share, thanks to the popularity of Apache.


09.08.06

How To Use Breakpoints

By Joel Murach

This article is an excerpt from the book: Murach's ASP.NET 2.0 Web Programming with C# 2005.

Figure 4-9 shows how to use breakpoints in an ASP.NET application. Note that you can set a breakpoint before you run an application or as an application is executing. Remember, though, that an application ends after it generates a page. So if you switch from the browser to Visual Studio to set a breakpoint, the breakpoint won't be taken until the next time the page is executed. If you want a breakpoint to be taken the first time a page is executed, then, you'll need to set the breakpoint before you run the application.

After you set a breakpoint and run the application, the application enters break mode before it executes the statement that contains the breakpoint. In this illustration, for example, the application will enter break mode before it executes the statement that caused the exception in figure 4-8 to occur. Then, you can use the debugging features described in the topics that follow to debug the application.

In some cases, you may want to set more than one breakpoint. You can do that either before you begin the execution of the application or while the application is in break mode. Then, when you run the application, it will stop at the first breakpoint. And when you continue execution, the application will execute up to the next breakpoint.

Once you set a breakpoint, it remains active until you remove it. In fact, it remains active even after you close the project. If you want to remove a breakpoint, you can use one of the techniques presented in this figure. You can also work with breakpoints from the Breakpoints window. To disable a breakpoint, for example, you can remove the check mark in front of the breakpoint. Then, the breakpoint isn't taken until you enable it again.

You can also move to a breakpoint in the Code Editor window by selecting the breakpoint in the Breakpoints window and then clicking on the Go To Source Code button at the top of this window, or by right-clicking the breakpoint in the Breakpoints window and choosing Go To Source Code from the shortcut menu.

The Order page with a breakpoint



How to set and clear breakpoints


• To set a breakpoint, click in the margin indicator bar to the left of the statement where you want the break to occur. The statement will be highlighted and a breakpoint indicator (a large dot) will appear in the margin. You can set a breakpoint before you run an application or while you're debugging the application.

• To remove a breakpoint, click the breakpoint indicator. To remove all breakpoints at once, use the Debug>Clear All Breakpoints command.

• To temporarily disable breakpoints, use the Debug>Disable All Breakpoints command. You can later enable the breakpoints by using Debug>Enable All Breakpoints.

Description

• When ASP.NET encounters a breakpoint, it enters break mode before it executes the statement on which the breakpoint is set. From break mode, you can use the debugger to determine the cause of an error.

• The current breakpoints are listed in the Breakpoints window (Debug>Windows> Breakpoints). You can use the toolbar at the top of this window to work with the breakpoints, and you can use the check box next to a breakpoint to enable or disable the breakpoint.

• You can't set breakpoints on blank lines or comments.

About the Author:
Joel Murach has been writing and editing for more than 10 years. During that time, he sharpened his programming skills as a contract programmer in San Francisco and his instructional skills as a trainer for HarperCollins Publishing. He always brings a vision to his projects that leads to improved effectiveness for his readers.

About WebProASP
WebProASP is a collection of up to date tutorials and insightful articles designed to help ASP users of any skill level implement successful ASP systems and practices. ASP Strategies and Tactics for Business

WebProASP is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
DatabaseProNews.com SQlProNews.com
ITcertificationNews.com SysAdminNews.com
WebProASP.com WirelessProNews.com
CProgrammingTrends.com ITManagementNews.com




-- WebProAsp is an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509
2006 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal

archives | advertising info | news headlines | free newsletters | comments/feedback | submit article

ASP Strategies and Tactics for Business WebProASP News Archives About Us Feedback WebProASP Home Page About Article Archive News Downloads WebProWorld Forums Jayde iEntry Advertise Contact