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) esp8266 debugging - VisualGDB ? (Read 6940 times)
perigalacticon
Junior Member
**
Offline


Posts: 55
Location: detroit area
Joined: Nov 7th, 2016
esp8266 debugging - VisualGDB ?
Apr 3rd, 2018 at 4:44pm
Print Post  
I just read that the VisualGDB debugger can be used to debug esp8266 in Visual Studio, is this available within VM for arduino/esp8266 debugging?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: esp8266 debugging - VisualGDB ?
Reply #1 - Apr 3rd, 2018 at 7:39pm
Print Post  
No it's coming fairly soon but too difficult for most so not a priority right now.

I have reports that VisualGDB hogs Visual Studio and prevents visual micro from working.

Therefore, interested to hear how you get on thanks.
« Last Edit: Apr 3rd, 2018 at 7:40pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
perigalacticon
Junior Member
**
Offline


Posts: 55
Location: detroit area
Joined: Nov 7th, 2016
Re: esp8266 debugging - VisualGDB ?
Reply #2 - Apr 3rd, 2018 at 7:48pm
Print Post  
I haven't used GDB (or any debugger besides the VM serial debugger), does this mean that you would be able to debug an ESP8266 Arduino sketch and be able to see all variable values at any step and step through each line?  I'm assuming that you could have it easily skip going into library functions you want to ignore.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: esp8266 debugging - VisualGDB ?
Reply #3 - Apr 3rd, 2018 at 7:53pm
Print Post  
Sorry. Yes when Visual Micro implements GDB for esp8266 you will have line by line.

If you install VisualGDB you will not use Visual Micro and normal Arduino
« Last Edit: Apr 3rd, 2018 at 7:54pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
perigalacticon
Junior Member
**
Offline


Posts: 55
Location: detroit area
Joined: Nov 7th, 2016
Re: esp8266 debugging - VisualGDB ?
Reply #4 - Apr 3rd, 2018 at 7:55pm
Print Post  
Ok thanks I appreciate that your support is always good here.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: esp8266 debugging - VisualGDB ?
Reply #5 - Apr 3rd, 2018 at 7:57pm
Print Post  
Thanks
  
Back to top
WWW  
IP Logged
 
goj immypi
Junior Member
**
Offline


Posts: 14
Joined: Jan 20th, 2017
Re: esp8266 debugging - VisualGDB ?
Reply #6 - Jul 8th, 2018 at 5:38pm
Print Post  
fwiw I have both VisualGDB and Visual Micro installed. They work independently on a per project (per solution?) basis; If a Visual Micro project is created, none of the VisualGDB features are available. I have not seen any unpleasant interaction between the two.

VisualGDB has rather robust JTAG debugging for single step, however it does not yet support the Arduino-style libraries. VisualMicro has great support of Arduino code, but I have yet to figure out how to use a JTAG programmer with it.

In the end, my go-to environment is VisualMicro due to the widely available and really awesome open source libraries from Adafruit, squix (e.g. weather station), the RadioHead libraries, and more. However I'm rather tired of all the Serial.println statements in my code.  Wink

I saw this link on "Arduino 3rd Party Hardware GDB Configuration Guide" and had hoped I could use a JTAG debugger with VisualMicro:

https://www.visualmicro.com/post/2016/01/17/3rd-Party-Hardware-GDB-Configuration...

However, from the April 3 comment - it appears there's no support for ESP8266 JTAG? Any word on when something like Olimex or Segger support for ESP8266 or ESP32 might be coming?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: esp8266 debugging - VisualGDB ?
Reply #7 - Jul 9th, 2018 at 12:29pm
Print Post  
Thanks for the update. GDB will be revisited after support for VS2012 and VS2013 ends during the next few months. Once they are out of the way we will be free to have a close tie to GDB using some of the new VS tools unavailable or too cumbersome to support in older IDE versions.

Quote:
In the end, my go-to environment is VisualMicro due to the widely available and really awesome open source libraries from Adafruit, squix (e.g. weather station), the RadioHead libraries, and more. However I'm rather tired of all the Serial.println statements in my code.  Wink


The Visual Micro debugger has better pin and graphical reporting than GDB but isn't as "live" when it comes to changing breakpoints during run-time. It does support changing variable values, gives some use trace/performance stats and avoids the need for serial.println().

That said I am looking forward to GDB if it works well on esp. Not as simple to setup for most users but some good tutorials will help.
« Last Edit: Jul 9th, 2018 at 12:31pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: esp8266 debugging - VisualGDB ?
Reply #8 - Aug 21st, 2019 at 10:48am
Print Post  
vMicro now supports a range of additional hardware debuggers out of the box - including GDB Stub options for boards like ESP8266 and Arduino Uno where JTAG/SWD interfaces may be limited.

ESP8266 GDB Stub Debugging: https://www.visualmicro.com/page/ESP8266-Debugging.aspx

ESP32 Hardware Debugging: https://www.visualmicro.com/page/ESP32-Debugging.aspx

Debugger List: https://www.visualmicro.com/page/DebuggerSupportList.aspx
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint