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
Hot Topic (More than 8 Replies) Won't stop at breakpoint. (Read 3809 times)
jae
Newbies
*
Offline


Posts: 6
Joined: Jun 20th, 2017
Won't stop at breakpoint.
Jun 20th, 2017 at 10:02pm
Print Post  
When I place breakpoints and click on Debug->start debugging, on the output it says that the upload process has finished and I can see the LED blink, but the program does not stop at any breakpoint.

I'm running Visual Studio 2017 Community.

Please help me fix this issue. Thank you.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Won't stop at breakpoint.
Reply #1 - Jun 20th, 2017 at 10:07pm
Print Post  
When you add a message or expressions to a breakpoint the checkbox called "Continue Execution" will be checked. Visual Studio does this by default.

Un-check "Continue Execution" in the properties of the break-point then re-upload. Right click the red spot or use the Breakpoints Window to edit break-point properties.

Please see the documentation (Tutorials and Wiki above) for more info about debugging.
  
Back to top
IP Logged
 
jae
Newbies
*
Offline


Posts: 6
Joined: Jun 20th, 2017
Re: Won't stop at breakpoint.
Reply #2 - Jun 20th, 2017 at 10:26pm
Print Post  
I unchecked "continue execution" under "Actions", but the program still does not stop at the breakpoint. Also I can't find the Visual Micro's Expression Window.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Won't stop at breakpoint.
Reply #3 - Jun 20th, 2017 at 10:30pm
Print Post  
Hi,

1)
Are you seeing a trace message when the break-point does not stop?

If not then debug is not on.


2)
Have you added a when hit message along with watch {expression} syntax?


  
Back to top
IP Logged
 
jae
Newbies
*
Offline


Posts: 6
Joined: Jun 20th, 2017
Re: Won't stop at breakpoint.
Reply #4 - Jun 20th, 2017 at 10:31pm
Print Post  
On the "Output" window, I do not see any trace messages and yes I'm using the {variable} notation.

How would I turn debugging on?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Won't stop at breakpoint.
Reply #5 - Jun 20th, 2017 at 10:35pm
Print Post  
Assuming you started a trial the first thing to look at is the vMicro>Debugging menu "Automatic Debug" should be checked, it is by default.

Then you simply switch the tool bar between "Release" and "Debug" to build and upload with or without debugging.

When you build you will see either "Compiling 'project avy'" or "Compiling debug version of 'projectxyz'" so you can clearly see if debug is on.

When debug starts the serial monitor will automatically open and the build output will switch to debug trace output.
  
Back to top
IP Logged
 
jae
Newbies
*
Offline


Posts: 6
Joined: Jun 20th, 2017
Re: Won't stop at breakpoint.
Reply #6 - Jun 20th, 2017 at 10:37pm
Print Post  
I see. I did not activate the trial that was the issue. I did not know that debugging was a paid feature.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Won't stop at breakpoint.
Reply #7 - Jun 20th, 2017 at 10:39pm
Print Post  
Yes it's one of the few paid features
  
Back to top
IP Logged
 
jae
Newbies
*
Offline


Posts: 6
Joined: Jun 20th, 2017
Re: Won't stop at breakpoint.
Reply #8 - Jun 20th, 2017 at 10:39pm
Print Post  
You should write on the debugging page of the docs that the paid version has to be used for debugging to prevent this confusion in the future.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Won't stop at breakpoint.
Reply #9 - Jun 20th, 2017 at 10:44pm
Print Post  
It is on the nag screen that appears once a day on first build. You have to click Cancel, Activate or Start a Trial. It is also on the buy page.

However you are right in as much as it used to be more obvious in the general docs so I will look at that thanks.

Out of interest, it's difficult for me to have a new user view, what did you think the Trial was for?

Thanks
  
Back to top
IP Logged
 
jae
Newbies
*
Offline


Posts: 6
Joined: Jun 20th, 2017
Re: Won't stop at breakpoint.
Reply #10 - Jun 20th, 2017 at 10:56pm
Print Post  
I didn't really read what features the pro version had, but I just knew that it had more features.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint