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) Continue/Step F5 does not work in debugging (Read 7236 times)
Jack Russell
Newbies
*
Offline


Posts: 6
Joined: Aug 28th, 2017
Continue/Step F5 does not work in debugging
Aug 28th, 2017 at 4:40pm
Print Post  
I have a Gerduino Zero with a breakpoint problem. I am using VS2017
I can load the program but if I add a breakpoint to the program the program stops at the breakpoint and I cannot continue, the “continue/step button” is not visible and F5 works not either. If I delete the breakpoint the program runs as intended. The Automatic Debugging option is selected. If I run the same board on a different PC with the same setup (I think) the debugging works fine
So my problem is that the continue/step (F5) is not active in debugging
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Continue/Step F5 does not work in debugging
Reply #1 - Aug 29th, 2017 at 12:01pm
Print Post  
Maybe you have two projects in the solution that doesn't work? The "Startup Project" is the one that VS routes short cut keys to. So if the project being debugged is not the startup project then F5 won't work.


  
Back to top
WWW  
IP Logged
 
Jack Russell
Newbies
*
Offline


Posts: 6
Joined: Aug 28th, 2017
Re: Continue/Step F5 does not work in debugging
Reply #2 - Aug 30th, 2017 at 7:53am
Print Post  
Thanks for your input but this is not the case. 
I use the simple blinky program and if I connect a Arduino Uno F5 works in debugging. 
But when I switch over to a Arduino zero (and select the correct board and port in the menu and recompile) the debugger never starts, I get this info:
Launching Debugger...
   - Serial debug will start immediately. WiFi (or gdb) debug will start a few seconds or a short time after the remote device connects to the network.
   - Switch on 'vmicro>debugger>full speed' to prevent debugger message throttling. (read the docs)
   - If 'in-break live watch' is disabled, continue an existing paused debug session by sending the character 'c' to the board using the Serial window.
   - To view debug messages without trace messages use the 'message windows' option on the monitor window.

I have tried to all those suggestions, nothing helps...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Continue/Step F5 does not work in debugging
Reply #3 - Aug 30th, 2017 at 11:09am
Print Post  
I see thanks for the explanation.

The zero has more than one board/port type. Which are you using?
  
Back to top
WWW  
IP Logged
 
Jack Russell
Newbies
*
Offline


Posts: 6
Joined: Aug 28th, 2017
Re: Continue/Step F5 does not work in debugging
Reply #4 - Aug 30th, 2017 at 12:22pm
Print Post  
I am only using the programming port (the one marked debug) The other port is not accepted

I am getting confused: if I try to load the blinky program on the same Arduino zero board but now using the Arduino IDE I get the error
Error: at91samd21g18.cpu -- clearing lockup after double fault
Then I reload the bootloader (still in Arduino IDE) and after that I can run the blinky on the board

If I then try to load the program using Visual Micro I still have the problem with F5. But if I go back to Arduino IDE again I get this error again and have to reload the bootloader...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Continue/Step F5 does not work in debugging
Reply #5 - Aug 30th, 2017 at 9:16pm
Print Post  
Thanks, which zero board have you got? There are a few types.

  
Back to top
WWW  
IP Logged
 
Jack Russell
Newbies
*
Offline


Posts: 6
Joined: Aug 28th, 2017
Re: Continue/Step F5 does not work in debugging
Reply #6 - Aug 31st, 2017 at 4:19pm
Print Post  
I have bought the board from Mouser 
http://eu.mouser.com/ProductDetail/Arduino/GBX00003/?qs=%2fha2pyFadugB1qETnSDqLe...

It’s an Genuino Zero and I use the programming USB port

I am using a paid Visual Micro and Visual Studio 2017 Community
The "Automatic debugging" is set 


Just to clear things, I have off course tested this issue over and over again and my latest experience with this is the following:


I use the blink program with an integer that I use for the breakpoint:

void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
}

int i = 0;

void loop() {
  digitalWrite(LED_BUILTIN, HIGH); 
  delay(1000);                      
  i++;                                    //I put my breakpoint here
  digitalWrite(LED_BUILTIN, LOW);       
delay(1000);                       
}

When I run it on an Uno it works both with or without breakpoints, the LED flashes and the F5 works


When I run the same program on the Genuino Zero the LED blinks when I have no breakpoints, but if I add a breakpoint the LED does not blink and the F5 icon is greyed out and not working

I really want this board up and running and I appreciate your effort trying to help me
  
Back to top
 
IP Logged
 
Jack Russell
Newbies
*
Offline


Posts: 6
Joined: Aug 28th, 2017
Re: Continue/Step F5 does not work in debugging
Reply #7 - Aug 31st, 2017 at 4:28pm
Print Post  
Hi again

I just found out that for the Genuino zero: the program runs until the breakpoint and stops there (when I have added breakpoint)

But again I cannot use the F5 to continue the program
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Continue/Step F5 does not work in debugging
Reply #8 - Aug 31st, 2017 at 10:20pm
Print Post  
1)

The debug is driven by the serial monitor. If the Dtr has been switched off then the board will start and hit a breakpoint before the debugger has started. In that case using the serial monitor to send the 'c' char will cause the program to continue and then F5 will start to work.

The Dtr normally defaults to On but please check it is.


2) If not Dtr issue. When the debugger is running....

Ignoring the vs short cuts for a moment. Do you have the vmicro tool bar visible? If not the vMicro menu also has the same controls. When the debugger is active the "continue/step next" menu should be displayed.

Is the menu displayed?
  
Back to top
WWW  
IP Logged
 
Jack Russell
Newbies
*
Offline


Posts: 6
Joined: Aug 28th, 2017
Re: Continue/Step F5 does not work in debugging
Reply #9 - Sep 1st, 2017 at 6:26am
Print Post  
It works, it was the DTR flag that was not set

I tried to send a    c    in the serial monitor but that did not work, then I simply clicked the DTR icon and that switched the flag on, and now its possible to use the F5 Continue/step

Anyway now it works,thank you for your help  Smiley




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