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 Confused Debug User.... (Read 5770 times)
RayLivingston
Full Member
***
Offline


Posts: 158
Location: California
Joined: Nov 24th, 2012
Confused Debug User....
Jun 11th, 2014 at 4:18pm
Print Post  
I've just installed the Debugger trial (been using VisualMicro for about 18 months), but I'm rather baffled by the functionality.  I set breakpoints with various conditions, but they seem to randomly to either work or not.  For instance, I can set a breakpoint in loop() with When Hit -> Display Message and Continue Execution.  Sometimes I get the message, sometimes I don't.  Same thing if I un-check Continue Execution - it doesn't reiliably do what I ask.

When I do eventually get it to execute a breakpoint, then what?  There appears to be no way to continue execution.  No matter what control I use, it re-compiles, and re-starts from the beginning.

Am I doing something wrong?  I am running the current version of AtmelStudio, not VisualStudio.

Regards,
Ray L.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Confused Debug User....
Reply #1 - Jun 11th, 2014 at 4:27pm
Print Post  
Hi Ray,

There is documentation here in the Debugging section http://www.visualmicro.com/page/User-Guide.aspx

First off, if you want the debugger to break/pause you need to enable it in the project properties (see the docs) http://www.visualmicro.com/page/User-Guide.aspx?doc=Debugging-Modes.html

Next the things to be aware of are where you place breakpoints. Think of them of adding Serial.print messages after the current code line. This means that if you please a breakpoint on an "If" then it will execute as the first line within the "If". This is different to how a normal debugger would work where the breakpoint is executed prior to the selected line of code

When you have break/pause enabled F5 and all using Start commands will continue if currently paused at a breakpoint otherwise Visual Micro will ask to "re-compile and upload?"

If your code also uses Serial or you have switched off the debugger throttle (not recommended) and are debugging a fast loop then it is possible that too much serial is generated and the arduino will not cope. You have various options to control breakpoint frequency either by good palcement of breakpoints, using conditions or the "when hit" facility.

Generally the debugger should work well and reliably, if it doesn't then please consider or investigate the points mentioned above.

If the problem persists then pelase zip your sketch folder including any sub folders and email to info[at]visualmicro.com

Thanks



« Last Edit: Jun 11th, 2014 at 4:27pm by Tim@Visual Micro »  
Back to top
IP Logged
 
RayLivingston
Full Member
***
Offline


Posts: 158
Location: California
Joined: Nov 24th, 2012
Re: Confused Debug User....
Reply #2 - Jun 11th, 2014 at 4:50pm
Print Post  
Tim,

The documentation is a bit confusing, as it indicates a MicroDebug setting in Project Properties.  None exists there as far as I can see.  There are settings under Tools->VisualMicro, which I assume are what I need to change?

BTW - VisualMicro has been GREAT!  There are only a couple of things I would love to see fixed:

1) I often get compile failures, with no useful information provided to help me find the problem.  This seems to occur most often when compiling projects with new libraries.  It appears the VisualMicro output window does not always show ALL of the compiler output.  My work-around is to open the Arduino IDE, and compile there.  I will then see ALL the output, which tells me where the problem is.

2) The SerialMonitor window has a REALLY annoying "feature" - When you enter text on the input line at the top of the window, it does a kind of auto-complete.  HOWEVER, it does NOT consider whether the text is upper or lower case.  I have some programs with a lot of command inputs, that differ only by case.  For example, in one program, "AT" is one command, while "at" is another.  This means I actually have to type "AT", or " at" (space as first character), or something similar, to prevent BOTH being replaced by whichever I entered first.  I would REALLY like to have a way to make it case-sensitive, and/or be able to just turn the auto-complete off entirely.

Regards,
Ray L.
  
Back to top
 
IP Logged
 
RayLivingston
Full Member
***
Offline


Posts: 158
Location: California
Joined: Nov 24th, 2012
Re: Confused Debug User....
Reply #3 - Jun 11th, 2014 at 4:58pm
Print Post  
Tim,

My current Debug settings are attached.  Still no luck getting it to actual stop on Break....

Regards,
Ray L.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Confused Debug User....
Reply #4 - Jun 11th, 2014 at 5:18pm
Print Post  
Hi Ray,

Your image just shows the automated loop() breakpoint settings that are useful for new users who have not set any breakpoints

Please ignore the loop settings which are not relevant to your request.

This is the documentation of the properties where you will see the "Enable Break/Pause" property 

http://www.visualmicro.com/page/User-Guide.aspx?doc=Project-Properties-Reference...

Thanks
  
Back to top
IP Logged
 
RayLivingston
Full Member
***
Offline


Posts: 158
Location: California
Joined: Nov 24th, 2012
Re: Confused Debug User....
Reply #5 - Jun 11th, 2014 at 6:11pm
Print Post  
Tim,

How very odd that right-clicking on the project name in the Explorer brings up one Project Properties dialog, while  clicking on (MenuBar)Project->Properties brings up a completely DIFFERENT one!  Hence my confusion.

Thanks!  I'll give it a try and report back.

Regards,
Ray L.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Confused Debug User....
Reply #6 - Jun 11th, 2014 at 6:55pm
Print Post  
Hi Ray,

Yes it's the biggest confusion for most users. I have no idea why Microsoft decided that "Property Pages" and "Project Properties" were good names!

Hopefully in future versions we will have the options on a top menu and a tool bar menu. The debugger controls and other config should be accessible via single click buttons.

Thanks
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint