Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
ESP8266 OTA debugging (Read 5246 times)
AZ2
Newbies
*
Offline



Posts: 1
ESP8266 OTA debugging
Jun 19th, 2016 at 12:06pm
 
should ESP8266 debugging work?
Even for the sample blink sketch on ESP8266 debugging does not work.
For my project the WiFi Manager hangs, when it tries to get the connect status. (ESP8266 is connceted to the WLAN router, but the check hangs, status is not updated)
Back to top
« Last Edit: Feb 12th, 2017 at 2:16pm by Visual Micro »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10388
United Kingdom
Re: ESP8266 debugging
Reply #1 - Jun 19th, 2016 at 12:39pm
 
Hi,

Wifi debugging is currently limited to Arduino boards that offer a terminal over wifi. For example, if I recall,  the Arduino Yun provides an SSH connection that works like a serial connection (can send/receive)

Last time I looked the ESP8266 doesn't have this yet but it's shown as "work in progress" in the ESP code.

So you have to debug using usb/serial. You can still upload using wifi but will need the usb connection or spare digital pins for debug. To do this you need to set the "debugger>Local Port" or, for mor eadvanced settings, follow the debugging with other ports and pins guide in the documentation.

If you try to debug on an IP address that does not support "terminal mode" there was a 7 second delay opening the debugger prior to it failing to start. I thought this was resolved in a recent update and I am not sure from your report if you are hitting this issue or not.

Lastly, I am not sure how any of this relates to the wifi status you mention or were you saying that is what you are trying to debug? Sorry for confusion.
Back to top
 
WWW  
IP Logged
 
Bob666
Newbies
*
Offline



Posts: 4
Re: ESP8266 debugging
Reply #2 - Dec 2nd, 2016 at 7:36am
 
Does anyone know whether this is now possible (ie wifi debugging with the ESP8266)?

Thanks
Bob
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10388
United Kingdom
Re: ESP8266 debugging
Reply #3 - Dec 2nd, 2016 at 3:44pm
 
Good question. It's the next job on the list. Maybe for this weekend.

Currently only the secure socket system used by the arduino yun (not recommended) is the only IP debug option but the 8266 has some good serial/tcp code now so we will use it.

Current Serial + OTA debug

If the unit is close by a pc you can upload with OTA and debug with serial usb. You get the fast upload of ota but no good for debug if the unit is remote. Set the vMicro>debugger>local port to the usb com port.

Back to top
 
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10388
United Kingdom
Re: ESP8266 debugging
Reply #4 - Dec 6th, 2016 at 2:10pm
 
The latest release supports v1 of IP debug for the Esp8266.

The 8266 must be using OTA.

Update of variables during debug is not yet supported so don't try it.

Debug should automatically stop when you disconnect the debugger in Visual Studio. This is to try to avoid the esp8266 from being stuck in a break-point when not debugging.

I also recommend switching on "vMicro>Debugger>Full Speed" to avoid the esp from slowing down.
Back to top
 
WWW  
IP Logged
 
Bob666
Newbies
*
Offline



Posts: 4
Re: ESP8266 OTA debugging
Reply #5 - Dec 10th, 2016 at 7:14am
 
Thanks, will give it a try.
Back to top
« Last Edit: Feb 12th, 2017 at 2:17pm by Visual Micro »  
 
IP Logged
 
dob
Newbies
*
Offline



Posts: 5
Re: ESP8266 OTA debugging
Reply #6 - Jan 1st, 2019 at 3:49pm
 
Is the update variable thing ever gonna be available?
Back to top
« Last Edit: Jan 1st, 2019 at 3:50pm by dob »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10388
United Kingdom
Re: ESP8266 OTA debugging
Reply #7 - Jan 1st, 2019 at 6:23pm
 
@dob

Update of live debugger variables when using wifo instead of serial?

I expect we will move to GDB as an option for GDB capable boards.

Currently we support VS2012 and 2013 which has made this move complicated. However Microsoft have made some changes for the next release of VS2019 which makes it impossible to support 2012 and 2013 so it seems like a good time to discontinue support for those two older IDE versions.

Question: Did you ever buy Visual Micro?
Back to top
« Last Edit: Jan 1st, 2019 at 6:26pm by Visual Micro »  
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print