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) Debugger is not stopping on Breakpoint in VisualStudio 2019 - Arduino Nano (Read 2894 times)
tb-software
Newbies
*
Offline


Posts: 6
Joined: Oct 20th, 2022
Debugger is not stopping on Breakpoint in VisualStudio 2019 - Arduino Nano
Oct 24th, 2022 at 10:34pm
Print Post  
I am very new to Visual Micro. I saw several manuals how it simple should work. I have tried several settings, but it never stops on breakpoint in VisualStudio. I want to read the "counter" variable and hold on there.

Video how I tried: https://youtu.be/LxmXS_zpZfU

How to let the System break on breakpoint?

« Last Edit: Oct 24th, 2022 at 10:42pm by tb-software »  

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: Debugger is not stopping on Breakpoint in VisualStudio 2019 - Arduino Nano
Reply #1 - Oct 24th, 2022 at 10:42pm
Print Post  
Hi,

Change the configuration "Release" on the toolbar to "Debug". Then upload again.

The default settings ensure that Release always gives a normal Arduino compile and "Debug" adds serial/usb debugging.

Another point to note is that the way the serial debugger works means the breakpoint on the "If" statement at line 36 will be hit inside, at the beginning, of the "if". That's different to normal debuggers.

The docs are the best place to look for tutorials https://www.visualmicro.com/page/User-Guide.aspx?doc=index
« Last Edit: Oct 24th, 2022 at 10:43pm by Tim@Visual Micro »  
Back to top
IP Logged
 
tb-software
Newbies
*
Offline


Posts: 6
Joined: Oct 20th, 2022
Re: Debugger is not stopping on Breakpoint in VisualStudio 2019 - Arduino Nano
Reply #2 - Oct 24th, 2022 at 10:48pm
Print Post  
And you DID MY DAY!!

I tried same in VirtualBox but did not work. Now I bought license and used without virtualisation and it worked. I forgot Debug while re-installing. So thank you for that hint.
  
Back to top
 
IP Logged
 
tb-software
Newbies
*
Offline


Posts: 6
Joined: Oct 20th, 2022
Re: Debugger is not stopping on Breakpoint in VisualStudio 2019 - Arduino Nano
Reply #3 - Oct 24th, 2022 at 10:51pm
Print Post  
Because I like to support such great help, let me also post how it looks after all is working. 

https://youtu.be/5uAsVS9Ss9M
  
Back to top
 
IP Logged
 
tb-software
Newbies
*
Offline


Posts: 6
Joined: Oct 20th, 2022
Re: Debugger is not stopping on Breakpoint in VisualStudio 2019 - Arduino Nano
Reply #4 - Oct 24th, 2022 at 10:54pm
Print Post  
Question: Where to read the value of "counter" variable?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger is not stopping on Breakpoint in VisualStudio 2019 - Arduino Nano
Reply #5 - Oct 24th, 2022 at 11:06pm
Print Post  
If you look for the "Using Breakpoint Counters" link on the docs page it shows some useful info

https://www.visualmicro.com/page/User-Guide.aspx
  
Back to top
IP Logged
 
tb-software
Newbies
*
Offline


Posts: 6
Joined: Oct 20th, 2022
Re: Debugger is not stopping on Breakpoint in VisualStudio 2019 - Arduino Nano
Reply #6 - Oct 25th, 2022 at 5:14am
Print Post  
I saw the condition. But there is no possibility to read back the current status of values?
Only by self made Serial.print()?

Or is there any hardware I can use?
« Last Edit: Oct 25th, 2022 at 5:18am by tb-software »  

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


Posts: 2712
Joined: Feb 13th, 2019
Re: Debugger is not stopping on Breakpoint in VisualStudio 2019 - Arduino Nano
Reply #7 - Oct 25th, 2022 at 8:54am
Print Post  
You can output the value into the Expressions window, and in the Output window as part of messages:
https://www.visualmicro.com/page/User-Guide.aspx?doc=Working-With-Breakpoints-Wh...

e.g. in the Breakpoint action add the below text, and then build and upload to the board again:
Code
Select All
Counter is {counter} 

  
Back to top
IP Logged
 
tb-software
Newbies
*
Offline


Posts: 6
Joined: Oct 20th, 2022
Re: Debugger is not stopping on Breakpoint in VisualStudio 2019 - Arduino Nano
Reply #8 - Oct 26th, 2022 at 11:44am
Print Post  
Great support. 

To share this knowledge for newbies like me in a "sample", you can download the sample project in attachment. 

Kind regards
Timo

https://youtu.be/z9ZVT2Nhbyc
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint