Wrox Programmer Forums
BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer
This is the forum to discuss the Wrox book Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer by Rod Stephens; ISBN: 9780470596906
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 8th, 2013, 01:06 PM
Authorized User
Join Date: May 2013
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default DeBugging the Code Problem Resolved, Finally

I guess I ddn't explain my problem correctly in my Lesson 12 Try It! note.

I just now watched your video of Lesson 12 on the DVD, and you have the same situation that I do.

In your video, you set a Breakpoint, then run the Program, which brings up the Banquet Planner form.

At this point, notice that the program has stopped at the Breakpoint, but none of the code is highlighted in yellow, and the "Locals" window has not appeared.

Then you say " .. here's the program again, I'll click the button.." at which time you click on the Calculate button.

Now the form disappears to the background and the code is highlighted yellow and can be stepped through.

My confusion was that I thought the code would be highlighted in yellow when the Breakpoint is reached, and the program is displayed. I didn't realize that you have to click something in the program to make it continue, before the code gets highlighted!

The text in the book says "When the code is stopped, you can hover the mouse over a variable to learn its value".

Fine, but I thought that "when the code is stopped" meant WHEN it hits the Breakpoint, not AFTER it hits the Breakpoint and you RESTART it by clicking on a button in the program!

This may seem a minor quibble, but I have sat here for hours wondering why my code did not highlight in yellow when it hits the Breakpoint.

It doesn't highlight until you stop the code at the Breakpoint, and THEN RESTART IT!

Similar Threads
Thread Thread Starter Forum Replies Last Post
Resolved! - code behind button won't execute dartcoach Access VBA 1 February 4th, 2008 06:17 PM
[RESOLVED] Remote Debugging Issue dparsons ASP.NET 1.0 and 1.1 Professional 1 March 19th, 2007 01:19 PM
Try/Catch/Finally rohit.sharma C# 2 January 12th, 2007 11:44 PM
Help debugging code muddog01 Access VBA 0 August 4th, 2006 05:51 PM
Changing code while debugging. ltdanp21 VS.NET 2002/2003 5 June 16th, 2004 06:11 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.