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 BreakPoint execution time (Read 1186 times)
Chris Molloy
Junior Member
**
Offline


Posts: 54
Location: Ontario, Canada
Joined: Dec 13th, 2012
BreakPoint execution time
Apr 6th, 2020 at 3:52pm
Print Post  
I am finding that a breakpoint, even a simple one is taking 45ms to execute.  Does this sound right?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2170
Joined: Feb 13th, 2019
Re: BreakPoint execution time
Reply #1 - Apr 6th, 2020 at 5:07pm
Print Post  
It depends on a number of factors.... is this using the vMicro Serial Debugger, or one of the Hardware Debuggers?

When you say it takes 45ms is this stepping from one line to the next with a break on each? (and assume a simple operation in code)
  
Back to top
 
IP Logged
 
Chris Molloy
Junior Member
**
Offline


Posts: 54
Location: Ontario, Canada
Joined: Dec 13th, 2012
Re: BreakPoint execution time
Reply #2 - Apr 7th, 2020 at 8:23pm
Print Post  
it is a simple breakpoint outputting a variable value.
when the breakpoint is enabled duration =0mms
when the breakpoint is enabled duration =46 to 53ms
see attached screen shots
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Chris Molloy
Junior Member
**
Offline


Posts: 54
Location: Ontario, Canada
Joined: Dec 13th, 2012
Re: BreakPoint execution time
Reply #3 - Apr 7th, 2020 at 8:23pm
Print Post  
other screenshot
  

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: BreakPoint execution time
Reply #4 - Apr 7th, 2020 at 8:48pm
Print Post  
There is some throttling by default because users often put breakpoints in fast loops without adding any condition or count filtering. The pc can't process a serial message every 1ms Smiley

We are looking at this area to make it more obvious how users can add their own rate limiting. There is a vMicro>Debugger menu item or tools option that sets Full Speed Debug. I think this will reduce the pause to a much lower value.

  
Back to top
WWW  
IP Logged
 
Chris Molloy
Junior Member
**
Offline


Posts: 54
Location: Ontario, Canada
Joined: Dec 13th, 2012
Re: BreakPoint execution time
Reply #5 - Apr 7th, 2020 at 9:53pm
Print Post  
Yes, that brought it down to 200 microseconds.

It was causing my app to miss keystrokes.

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