Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How do I use the debugger? (Read 2451 times)
Rick Burns
Newbies
*
Offline


Posts: 7
Joined: Feb 26th, 2013
How do I use the debugger?
Mar 15th, 2013 at 6:38pm
Print Post  
Hi Tim,
              In the video the Output window has a 'Show output from' dropdown but mine does not have it. How do I get it to show?

I have followed the steps as shown in the video to add breakpoints display msgs and variables but I don't get anything on the output window and the Expressions window also does not show any output.

On my screen I have the Project.ino window as well as Project(Debug).ino  Which window do I set the breakpoints in as I can do it in both?  I notice that the video does not show the 'Debug' one?

I'll send you an email with a screen shot of my VS window in case you can see something from it that I may have not set correctly.

Thanks again for your help,

Rick.


  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How do I use the debugger?
Reply #1 - Mar 15th, 2013 at 9:47pm
Print Post  
Hi Rick,

I've split this out to a new post because it doesn't really relate to the video that member "Lakes" posted and allows is to continue a discussion without Lakes getting lots of emails.

You would read on the main debugger page of visualmicro.com and elsewhere that this is the official video http://www.visualmicro.com/post/2012/05/05/Debug-Arduino-Overview.aspx

I have received your screen shot but can only see it only my mobile phone. Both hotmail and microsoft outlook fail to display the image so i can't post a copy of it into this thread for discussion. However I can provide the following feed back.

I can see that you are getting a bit confused. I suggest you step back and follow the instructions on the debug page for your initial tests and also the youtube video. This will give you the opportunity to see what an Arduino project looks like.

Your screen shot shows the vs ide with two projects. I suggest you right mouse click the project name in the solution explorer and "Remove" the project you are not using. If you want two projects open then open 2 instances of VS with one project in each until you become familiar with how VS works.

Your screen shot shows that you have an Arduino project called Rick_LCD_2 that contains a sketch source called Rick_LCD_2.ino. This looks good because the main .ino of any sketch must have the same name as the project so this is great.

Your screen shot shows that you have created a source file called Rick_LCD_2 (Debug).ino. but the file is not part of the Rick_LCD_2 sketch. (General Tip: you should keep your arduino code file names short and without space or brackets etc.). I will assume that the (debug) sketch file belongs to the 2nd project in your solution called "TestRTC" but it might just as easily be a source file that you have opened into the VS Ide. VS allows you to open lots of files that are unconnected to any project, this is useful for reference purposes when you know VS but right now this is confusing you. Please click the X on the (debug) source file to close it.

VS allows you to set breakpoints for more than one project and for non-arduino files. Visual Micro will ignore all breakpoints that are not part of the "Startup Project" which is currently "Rick_LCD_2". As suggested earlier I suggest you keep things simply, one project per vs solution, this will prevent you from adding breakpoints to the sources of other projects (until you know vs a little better). So remove all the breakpoints that do not relate to the current sketch by clicking each breakpoint and pressing DEL. This will make things simpler and clearer for you in the short term.

You can't see the output window types above the output window because the  window does not have enough space to display it. Please drag the window with the mouse holding the CTRL key as you do that. This will cause the output window to float and allow you to see more clearly what size it needs. try to drop it into its own area tool area.

I hope this make sense  Smiley
« Last Edit: Mar 15th, 2013 at 9:47pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint