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) Debugging ESP32 with ESP-Prog - Breakpoints one line out (Read 2493 times)
Pete Gallagher
Newbies
*
Offline


Posts: 8
Joined: Jun 19th, 2020
Debugging ESP32 with ESP-Prog - Breakpoints one line out
Jun 19th, 2020 at 7:39pm
Print Post  
Hey All,

I'm brand new to VisualMicro... Ace tool... Cheers.

I'm debugging an ESP32 DevKit with the ESP-Prog JTAG debugger in Visual Studio 2019 Enterprise Preview 6... 

When I set a breakpoint and debug the code, the breakpoints shift by a line.

Stepping through the code shows that the debugger and the code are out of step by a line. The debugger is successfully stepping, but the code is highlighting the line before the actual executed code.

The code is just a really simply push button and led test, so nothing complicated, no includes or anything.

I've disabled all the optimization for the project - Core, Libraries and Project, and set the debugging to "No Optimization".

I think I've attached everything I need to this post.

There's also a tiny video of it happening here;

https://www.dropbox.com/s/vglsplqwriktozt/VisualMicroIssue-19-06-20.mp4?dl=0

Any help would be great...

Thanks!

Pete.
« Last Edit: Jun 19th, 2020 at 9:14pm by Pete Gallagher »  

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: Debugging ESP32 with ESP-Prog - Breakpoints one line out
Reply #1 - Jun 19th, 2020 at 8:12pm
Print Post  
Thanks for all the info. We have replicated the issue in the last build and hope to replace it during the next couple of days. This thread will be updated when the build is available.
  
Back to top
WWW  
IP Logged
 
Pete Gallagher
Newbies
*
Offline


Posts: 8
Joined: Jun 19th, 2020
Re: Debugging ESP32 with ESP-Prog - Breakpoints one line out
Reply #2 - Jun 19th, 2020 at 9:12pm
Print Post  
That's fab... Thanks for looking into that so fast!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugging ESP32 with ESP-Prog - Breakpoints one line out
Reply #3 - Jun 19th, 2020 at 9:49pm
Print Post  
There is an Sp1 fix in the LATEST thread of the link below. The version is 20.06.18.1.

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

As reqpored, the issue applied to compiler error reporting and GDB for code in the project_name.ino. Other .ino files or cpp files were unaffected.

Thanks again for the report. 
  
Back to top
WWW  
IP Logged
 
Pete Gallagher
Newbies
*
Offline


Posts: 8
Joined: Jun 19th, 2020
Re: Debugging ESP32 with ESP-Prog - Breakpoints one line out
Reply #4 - Jun 19th, 2020 at 10:25pm
Print Post  
Sadly that didn't seem to work Sad...

I did a Clean Solution and toggled the "Shared Cache for Cores" option too.

I've attached the MicroBuild Output again...

Thanks so much for all your help!
« Last Edit: Jun 19th, 2020 at 10:31pm by Pete Gallagher »  

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


Posts: 2175
Joined: Feb 13th, 2019
Re: Debugging ESP32 with ESP-Prog - Breakpoints one line out
Reply #5 - Jun 19th, 2020 at 11:12pm
Print Post  
From the log it appears the update isn't installed (Api: 1.2020.0618-0). We have a video covering this on our You Tube channel.

Of course let us know if you have any issues with the process.
  
Back to top
 
IP Logged
 
Pete Gallagher
Newbies
*
Offline


Posts: 8
Joined: Jun 19th, 2020
Re: Debugging ESP32 with ESP-Prog - Breakpoints one line out
Reply #6 - Jun 20th, 2020 at 7:20am
Print Post  
Ah... I had installed it correctly... But, I had to go into Extensions->Updates and then perform the update in there after I installed it (I didn't expect to have to do that)!

It's all working now... Cheers!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugging ESP32 with ESP-Prog - Breakpoints one line out
Reply #7 - Jun 20th, 2020 at 2:06pm
Print Post  
Maybe this helps for the future. See if it makes sense? 

In the forum releases the 20.06.18.1 was pinned to the top of the page and has a description that starts with LATEST. 

That version was subsequently pushed to the gallery later yesterday which is why the extension manager download worked for you.

It is possible you installed the 20.06.18.0 from the forum yesterday.

Thanks again for the report.

  
Back to top
WWW  
IP Logged
 
Pete Gallagher
Newbies
*
Offline


Posts: 8
Joined: Jun 19th, 2020
Re: Debugging ESP32 with ESP-Prog - Breakpoints one line out
Reply #8 - Jun 20th, 2020 at 4:23pm
Print Post  
AH... I think you're right, looking at my downloads directory!

Apologies, and thanks very much for the info and all the help!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint