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 No "Enable Break/Pause" selection in Project Properties (Read 7385 times)
camjammer
Newbies
*
Offline


Posts: 7
Location: Home
Joined: Feb 8th, 2013
No "Enable Break/Pause" selection in Project Properties
Feb 14th, 2015 at 10:44am
Print Post  
This is the first thing I have found in my search for the reason my breakpoints don't work. 

System: Intel Core i3-2130 @ 3.4 GHz
            RAM 6 GB
            64-bit OS, x64 based processor
            Windows 8.1
            Atmel Studio 6 (Version 6.2.1502 - Service Pack 1)

Thanks for any assistance and let me know if more system info would be helpful in the future.

I love VM!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No "Enable Break/Pause" selection in Project Properties
Reply #1 - Feb 14th, 2015 at 1:46pm
Print Post  
Hi,

They are enabled by default. maybe there is some older documentation that needs to be removed that suggests you need to enable them.

Is the tool bar set to Debug or Release configuration?

Thanks
« Last Edit: Feb 14th, 2015 at 1:47pm by Tim@Visual Micro »  
Back to top
IP Logged
 
camjammer
Newbies
*
Offline


Posts: 7
Location: Home
Joined: Feb 8th, 2013
Re: No "Enable Break/Pause" selection in Project Properties
Reply #2 - Feb 14th, 2015 at 5:15pm
Print Post  
Thanks for the quick response.

Debug was selected.

There is some confusion about the documentation, i.e.

From the online doc's:
"Press the Blue tool bar arrow or SHIFT+F5 for compile and upload (Debug>Start without debugging)
Press the Green tool bar arrow or F5 to compile, upload and debug"

My toolbar shows:
Blue arrow = "Start Without Debugging (Ctrl+Alt+F5)"
In case I'm color blind, this arrow is the second one to the left of the Debug drop down box.

Green arrow = "Start Debugging (F5)"
This arrow is directly above the Serial Monitor icon. I'm using the default toolbar arrangement.

Can you tell me if this might be the problem. Right now, I'm not sure what I'm doing when I use these arrows/keys.

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No "Enable Break/Pause" selection in Project Properties
Reply #3 - Feb 14th, 2015 at 6:10pm
Print Post  
Hi

Sorry for the confusing which is due to the differences between Atmel Studio and Visual Studio.

If your breakpoints are to be used then you would need to have the "Debug" configuration selected as you have. Also you would need to use one of the debug start commands such as GreenArrow, Debug>Start, Step into etc.

If the debug compile happens this is shown in the compiler output. First you will see a release compile and then a 2nd compile will say it is making a debug compile.

Please post the output you are seeing after an upload attempt.

Can you also confirm that you have started a trial or purchased for the debugger? What is the License Status that is displayed in "tools>options>visual micro>application features>license status"

Thanks
« Last Edit: Feb 14th, 2015 at 6:10pm by Tim@Visual Micro »  
Back to top
IP Logged
 
camjammer
Newbies
*
Offline


Posts: 7
Location: Home
Joined: Feb 8th, 2013
Re: No "Enable Break/Pause" selection in Project Properties
Reply #4 - Feb 15th, 2015 at 12:14am
Print Post  
Using F5:

Compiling 'Sketch1' for 'Arduino Nano w/ ATmega328'
Binary sketch size: 3,106 bytes (used 10% of a 30,720 byte maximum) (0.14 secs)
Compiling debug version of 'Sketch1' for 'Arduino Nano w/ ATmega328'
Binary sketch size: 4,390 bytes (used 14% of a 30,720 byte maximum) (0.36 secs)
Uploading to I/O board using 'COM3'
Done uploading

Now the breakpoint is working sometimes. Is the breakpoint sensitive to where it is placed in the code?

License Status       REGISTERED

Thanks for all the help.

« Last Edit: Feb 15th, 2015 at 12:37am by camjammer »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No "Enable Break/Pause" selection in Project Properties
Reply #5 - Feb 15th, 2015 at 2:31pm
Print Post  
The docs need to be a bit clearer

1)
If you add a text message to a breakpoint "when hit" then it will be a trace point but will not halt the code when hit. You have to untick the "Continue execution" checkbox on the "breakpoint when hit" window to cause code to halt. This means that breakpoints with text messages are "trace points" by default.

2)
Breakpoints are inserted into the temp compiler code at the end of a code line, See The Exact Location of a Breakpoint in this article:-

http://www.visualmicro.com/page/User-Guide.aspx?doc=Debugging.html

An important point to keep in mind is what happens when you please breakpoints on line that start with "if"

In this case the breakpoint will execute inside the "if". Braces will be added if there are none.

So it's best to think of a breakpoint as adding your own serial.print statement to the code. Sometimes it will be better to place a breakpoint before the line that starts with an "if". 

A good rule is to place breakpoints on simple (non conditional) code or empty lines.
« Last Edit: Feb 15th, 2015 at 2:33pm by Tim@Visual Micro »  
Back to top
IP Logged
 
camjammer
Newbies
*
Offline


Posts: 7
Location: Home
Joined: Feb 8th, 2013
Re: No "Enable Break/Pause" selection in Project Properties
Reply #6 - Feb 16th, 2015 at 11:18am
Print Post  
Hi again...

I have moved my breakpoint several times between a line of code and an empty line. The "Continue execution" box is unchecked. The breakpoint consistently works on a line of code and does not on an empty line. It's not a problem for me. I'm just letting you know my experience with breakpoints.

Once again, thanks for the quick response.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No "Enable Break/Pause" selection in Project Properties
Reply #7 - Feb 20th, 2015 at 3:56pm
Print Post  
« Last Edit: Feb 20th, 2015 at 4:01pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint