Page 275 - DCAP312_WEB_TECHNOLOGIES_II
P. 275
Unit 14: Debugging and Optimization
Save the changes we made to the project options. Then select Run from the Debug menu. Cassini Notes
should then start (See Figure 14.4).
Figure 14.4: Start the Cassini
Click the http://localhost:8080/ hyperlink at the bottom of the Cassini window to visit our
application’s web page in the default browser. When the page is loaded in the browser the
breakpoint in Page Load should then be hit and we can start debugging (See Figure 14.5).
Figure 14.5: Breakpoint in Page Load
14.1.4 Attach to Process
As an alternative to configuring SharpDevelop to start Cassini every time we debug our ASP.
NET application we can leave Cassini running and attach to its process when we need to.
First on our desktop create a shortcut to Cassini and specify the appropriate Cassini command
line as explained earlier. Note that the ${ProjectDir} property cannot be used here so instead we
will need to put the full path to our project. Start Cassini by double clicking the shortcut and
use a browser to display our web page. Now in SharpDevelop select Attach to Process from the
Debug menu. Select the Cassini process and click the Attach button.
LOVELY PROFESSIONAL UNIVERSITY 269