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 Rebuild Does Not Enable Debugger (Read 6445 times)
uChip
Junior Member
**
Offline


Posts: 22
Location: Washington, USA
Joined: Apr 22nd, 2013
Rebuild Does Not Enable Debugger
Apr 25th, 2013 at 7:12pm
Print Post  
Moving from VS Express to VS Pro, they changed the Function keys on me.  Used to be that F11 was step-into and F12 was step-over.  Now it's F8 and Shift-F8.  This lead me to some interesting behaviors of the Visual Micro Debugger.

The change in function keys is not immediately apparent as typing F11 when stopped at a breakpoint does restart execution.  But, if you are iterating through a loop and tap F11 repeatedly and happen to catch the program while running you get a dialog asking if you want to build and upload a new program.  Clicking ok or typing Enter at this dialog does rebuild and upload the program, but with debugging off.

Turns out that F8 has the same behavior.  The rebuild has the debugger off.

Taps on F8 (or F11) while in this non-debugging state rebuild and upload (no longer with prompting dialog) with debug off.  DEBUG>Start Debugging rebuilds and uploads with debugger on as expected as does F5.

It seems like typing an F8 should always engage the debugger.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Rebuild Does Not Enable Debugger
Reply #1 - Apr 25th, 2013 at 8:37pm
Print Post  
I'll look into that, it's different in my VS install. On my Debug menu Debug>Start Debugging shows as F5. What is it on yours?

  
Back to top
IP Logged
 
uChip
Junior Member
**
Offline


Posts: 22
Location: Washington, USA
Joined: Apr 22nd, 2013
Re: Rebuild Does Not Enable Debugger
Reply #2 - Apr 26th, 2013 at 2:22am
Print Post  
I think my function keys are mapped the same.  It must have been Express that was different.
VS Pro v11.0.60315.01
F5 - Start Debugging
F8 - Step Into
Shift-F8 - Step Over
F11 - does not seem to be defined but behaves the same as F8

I am able to consistently repeat the situation where the rebuild does not debug.  If you can't reproduce it, let me know and I will help.

I've now been using the debugger for a couple of hours.  I must be dense as I can't establish what I feel is a reasonable work flow.  Here is the sort of work flow that I am expecting.
     1 write some code
     2 set some breakpoints
     3 compile, upload, run code with debug
     4 watch breakpoint messages typing continue occasionally
     5 write some more code
     6 modify the breakpoints
     7 compile, upload, run code with debug

My problem is between steps 4 and 5.  I feel I'm doing awkward things to get back to coding/build.  What is the "right" way to exit the debugger?

Thanks.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Rebuild Does Not Enable Debugger
Reply #3 - Apr 26th, 2013 at 10:12am
Print Post  
Ill look at improving this area, for now you can either click F5 twice quickly to upload or close the serial monitor to stop debug
  
Back to top
IP Logged
 
uChip
Junior Member
**
Offline


Posts: 22
Location: Washington, USA
Joined: Apr 22nd, 2013
Re: Rebuild Does Not Enable Debugger
Reply #4 - Apr 27th, 2013 at 6:50pm
Print Post  
I was trying to use the "hit F5 twice quickly" but it was a small amount of code within loop().  Catching the code running instead of already stopped at the next breakpoint was hard.  I was having to tap many times before I could break out.

I did discover closing the serial monitor.  You can also just uncheck "Connect".  Neither of these seem intuitive to me, but they work consistently.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Rebuild Does Not Enable Debugger
Reply #5 - Apr 27th, 2013 at 6:57pm
Print Post  
Yes I'm going to add some tool bar options to make it easier. 

ps: The bug button on the serial tool has some extra options which might help but no more intuitive than clicking the connect button.

By this might not apply to your project but if you want to slow the rate of breakpoints down whilst allowing a loop to continue at full speed you can set the project "Hit Counter" property to milliseconds and set the breakpoint Hit Count to "break when multiple of 500". This will give you 2 breakpoints per second. As I said it might be completely useless for your project but keep in mind when breaking and tracing in fast loops.
  
Back to top
IP Logged
 
uChip
Junior Member
**
Offline


Posts: 22
Location: Washington, USA
Joined: Apr 22nd, 2013
Re: Rebuild Does Not Enable Debugger
Reply #6 - Apr 27th, 2013 at 7:46pm
Print Post  
Good to know.  Thanks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint