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 ESP32 USB debugger ignores delay() (Read 153 times)
romeo
Junior Member
**
Offline


Posts: 48
Joined: Aug 3rd, 2024
ESP32 USB debugger ignores delay()
May 15th, 2026 at 7:10am
Print Post  
I have simple blink sketch - flash the onboard LED R-G-B-W on an ESP32S3 module in turn with delay(1000) statement between each. When the debugger is loaded, and the loop is paused, and I hit "Run Execution to Here" to any point (eg, to previous statement causing one pass through entire loop) the execution appears to ignore any delay() statements it encounters and immediately goes to the pause location. 
Same thing when I run through the loop to a breakpoint. 

Is this a known "feature"? Is it unique to the ESP32?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2920
Joined: Feb 13th, 2019
Re: ESP32 USB debugger ignores delay()
Reply #1 - May 20th, 2026 at 1:59pm
Print Post  
Thanks for the report, and apologies for the delay in getting back to you on this one.

I've tried this with the ESP32S3 USB Debugging and the simple NeoPixel sketch, but don't seem to get the problem with the delay() elements being ignored.

Can you do a Build and start the Debugger with the below settings enabled, and attach the log for review?
  • vMicro > Compiler > Verbose
  • vMicro > Compiler > Show Build Properties
  • vMicro > Uploader > Verbose


I just want to be sure I have the exact same versions and config.

If you are able a short video would also be very useful... though know this is not always possible.
  
Back to top
IP Logged
 
romeo
Junior Member
**
Offline


Posts: 48
Joined: Aug 3rd, 2024
Re: ESP32 USB debugger ignores delay()
Reply #2 - May 22nd, 2026 at 7:21am
Print Post  
Simon,
I have attached the build log as requested, with the settings you specified. I have sent a brief video via email, as I can't attach it here. You can see the yellow arrow pointer disappear for a second or so when I hit Continue; the video doesn't capture the very brief LED flash that occurs.
Roman
Addition: I increased the delay to 3000 at each step. If I pause for about 20 seconds, the same brief flash of the LED but the yellow arrow disappears for about longer. If I press continue in a shorter time than about 20 seconds, some of the sequence prior to the breakpoint appears - it's as if the total of the loop delays accumulates anyway while paused, which is weird.
« Last Edit: May 22nd, 2026 at 7:38am by romeo »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint