Welcome to WebProNews Breaking eBusiness and Search News
Advertise | Newsletter | Sitemap | News Feeds News Feed 
 WebProNews Search Part of the iEntry network iEntry inc. 

Squash Bugs In Visual Studio

David A. Utter
Staff Writer
Published: 2006-09-21

WebProNews RSS Feed


When something odd happens in a program that the developer certainly did not include in the code, a bug may have nestled in, and needs to be tracked down and fixed.

There is nothing quite like firing up a new program and watching it return something to standard output that looks more like a cat walked across a Cyrillic keyboard than the results one expected to see.

Developers working in Microsoft's Visual Studio can take steps to help avoid the pain of invoking the debugger yet again, by proactively preventing some of the more common bugs from cropping up in code.

Author Peter Aitken has worked on several programming related books, including ones about Visual Studio.

He recently posted some commentary to InformIT that aims at placing the virtual flyswatter in developers' hands and turning them loose on those bugs.

Even the most dedicated programmer who follows Aitken's suggestions on good programming practices might still end up having to track down a belligerent byte or two of buggy code.

Just like the well-known maxim 'divide and conquer', breaking up one's code can help a programmer narrow down the section where the bug lives.

Aitken suggests using breakpoints to find that critter.

"While the program is paused, you can take various actions to help find a bug," he wrote.

Those actions include modifying the conditions that trigger the breakpoint, or specifying a hit count for each time the breakpoint is passed.

Once the program pauses, it's time for the sheer joy of single-stepping through the code.

Aitken pointed out some useful keyboard shortcuts for when the program enters break mode. The developer can continue to the next breakpoint, or step into, over, or out of running the next statement.

Sometimes seeing the value of variables can help identify the problem.

By setting watch expressions for program variables through the Debug menu will show those values as the program executes.

If a variable reaches an unexpected value, that would indicate some kind of issue impacting it.

Go get those bugs. (Ok, maybe not those bugs. You know what I mean.)

---
Tag:

Add to Del.icio.us | Digg | Yahoo! My Web | Furl

Bookmark WebProNews:



Receive Our Daily Email of Breaking eBusiness News


About the Author:
David Utter is a staff writer for WebProNews covering technology and business.

WebProNews RSS Feed

More Top News Articles

Contact WebProNews
Advertisement





TOP NEWS

Targeted Information for Business
WebProNews is part of the iEntry network

Internet Business: Marketing: Small Business:
WebProNews MarketingNewz SmallBusinessNewz
WebProWorld AdvertisingDay PromoteNews
EcommNewz SalesNewz EntrepreneurNewz

Software: Search Engines: Web Design:
WebMasterFree Jayde B2B DesignNewz
NetworkingFiles SearchZA FlashNewz
SecurityConfig SearchNewz WebSiteNotes

Developer: IT Management: Security:
DevWebPro ITManagement SecurityProNews
DevNewz SysAdminNews SecurityConfig
TheDevWeb NetworkingFiles NetworkNewz

The iEntry Network consists of over 100 web publications reaching millions of Internet Professionals. Contact us to advertise.
eBUSINESS RESOURCES






 Advertise | Contact Us | Corporate | Newsletter | Sitemap | Submit an Article | News Feeds
 WebProNews is an iEntry, Inc. ® publication - $line) { echo $line ; } ?> All Rights Reserved
About WebProNews
WebProNews is the number one source for eBusiness News. Over 5 million eBusiness professionals read WebProNews and other iEntry business and tech publications.

WebProNews provides real-time coverage of internet business.

Free Email Newsletters:
WebProNews SearchNewz
WebProWorld DevWebPro
Marketing SecurityNews
Plus over 100 other newsletters!

Send me relevant info on products and services.


WebProWorld
Ten most recent posts.

NetworkingFiles
Featured Software

WebProNews in the News
View all recent mentions of WebProNews from around the world!

Recent Articles On ...
Google eBusiness
Yahoo Ask Jeeves
MSN Blogs
Search Engines Blogging
Affiliate Programs Marketing
eCommerce Advertising
eBay Sun Microsystems
AOL Adsense
Microsoft Adwords
Oracle IBM
Amazon Apple
SEM Mac
SEO iPod
Adsense XBox
PR Adobe



iEntry.com WebProWorld RSS Feed WebProWorld Contact WebProNews Print Version Email a friend Bookmark us