Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Continue/Step F5 does not work in debugging (Read 558 times)
Jack Russell
Junior Member
**
Offline



Posts: 6
Re: Continue/Step F5 does not work in debugging
Reply #9 - Sep 1st, 2017 at 7:26am
 
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
 
Visual Micro
Administrator
*****
Offline



Posts: 8095
United Kingdom
Re: Continue/Step F5 does not work in debugging
Reply #8 - Aug 31st, 2017 at 11:20pm
 
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
Junior Member
**
Offline



Posts: 6
Re: Continue/Step F5 does not work in debugging
Reply #7 - Aug 31st, 2017 at 5:28pm
 
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
 
Jack Russell
Junior Member
**
Offline



Posts: 6
Re: Continue/Step F5 does not work in debugging
Reply #6 - Aug 31st, 2017 at 5:19pm
 
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
 
Visual Micro
Administrator
*****
Offline



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

Back to top
 
WWW  
IP Logged
 
Jack Russell
Junior Member
**
Offline



Posts: 6
Re: Continue/Step F5 does not work in debugging
Reply #4 - Aug 30th, 2017 at 1:22pm
 
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
 
Visual Micro
Administrator
*****
Offline



Posts: 8095
United Kingdom
Re: Continue/Step F5 does not work in debugging
Reply #3 - Aug 30th, 2017 at 12:09pm
 
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
Junior Member
**
Offline



Posts: 6
Re: Continue/Step F5 does not work in debugging
Reply #2 - Aug 30th, 2017 at 8:53am
 
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
 
Visual Micro
Administrator
*****
Offline



Posts: 8095
United Kingdom
Re: Continue/Step F5 does not work in debugging
Reply #1 - Aug 29th, 2017 at 1:01pm
 
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
Junior Member
**
Offline



Posts: 6
Continue/Step F5 does not work in debugging
Aug 28th, 2017 at 5:40pm
 
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
 
Page Index Toggle Pages: 1
Send Topic Print