Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 8th, 2013, 01:06 PM
Authorized User
Points: 179, Level: 3
Points: 179, Level: 3 Points: 179, Level: 3 Points: 179, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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!
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 02:18 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.