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 Debug don't work after code changed (Read 1933 times)
Dave Morris
Newbies
*
Offline


Posts: 5
Joined: Sep 6th, 2023
Debug don't work after code changed
Oct 23rd, 2023 at 10:37pm
Print Post  
Hi, Guys
I have a problem with Debug using "Built in (EDBG)" - when I first load a simple program and run in debug it works great - breakpoints function as required.
However, if I modify the source and click on "Start" again to recompile (See attached log file for the Output->Micro Build) it will not run ("Start" button changes to "Continue" and is grayed out). 
The only fix I found is to drop out of VS2019 and restart it then the debug runs correctly.

Can anyone help?
Kind regards
Dave Morris
  

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


Posts: 2769
Joined: Feb 13th, 2019
Re: Debug don't work after code changed
Reply #1 - Oct 24th, 2023 at 9:17am
Print Post  
Thanks for the report, if you disconnect the Arduino Zero from your PC this should allow you to retry debugging without having to restart VS.

Can you try adding a Local Board.txt to your project (vMicro > Add Code > Add Local Board.txt), and pasting in the text from the attached file.

Then try debugging again, and it should work the same every time when you press the Start Debugging button.
  

Please Register or Login to the Forum to see File Attachments
Back to top
IP Logged
 
Dave Morris
Newbies
*
Offline


Posts: 5
Joined: Sep 6th, 2023
Re: Debug don't work after code changed
Reply #2 - Oct 24th, 2023 at 10:21am
Print Post  
Hi Simon
Thanks for the quick response.

The unplugging the board (after I click on stop debug) and plugging it in again makes not difference.

However,  second option of updating the Board.txt file with attached file contents does work!

Thanks for your help
Dave
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2769
Joined: Feb 13th, 2019
Re: Debug don't work after code changed
Reply #3 - Oct 24th, 2023 at 10:33am
Print Post  
Thanks for confirming, reconnecting the board was just for a quicker way to try the process again without starting VS.

We will merge the board.txt change into the default settings and update this thread when the fixed release is available.
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2769
Joined: Feb 13th, 2019
Re: Debug don't work after code changed
Reply #4 - Oct 26th, 2023 at 10:17am
Print Post  
Please try the latest release (23.1006.02) which is available from the top of the below board and will remove the need for the board.txt:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint