Skip to content

allow control of enabling debug and debug level from IDE #1350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 2, 2016

Conversation

Links2004
Copy link
Collaborator

allow control of debug and debug level from IDE

@asetyde
Copy link

asetyde commented Jan 2, 2016

About esp Gdb or other ??

Sent from my iPhone

On 02 gen 2016, at 12:26, Markus notifications@github.com wrote:

You can view, comment on, or merge this pull request online at:

#1350

Commit Summary

allow control of enabling debug and debug level from IDE
File Changes

M boards.txt (26)
M cores/esp8266/core_esp8266_main.cpp (3)
M cores/esp8266/debug.h (4)
M libraries/ESP8266HTTPClient/src/ESP8266HTTPClient.h (6)
M libraries/ESP8266WebServer/src/ESP8266WebServer.cpp (13)
M libraries/ESP8266WebServer/src/Parsing.cpp (50)
M libraries/ESP8266WiFi/src/WiFiClientSecure.cpp (4)
M libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.h (6)
M platform.txt (6)
Patch Links:

https://github.com/esp8266/Arduino/pull/1350.patch
https://github.com/esp8266/Arduino/pull/1350.diff

Reply to this email directly or view it on GitHub.

@Links2004
Copy link
Collaborator Author

its manage the serial out debug messages.
its independent of GDBStub, its run-time debugging.

often we need more info when we get a new issue,
then we most ask to change this line and that to activate debug output.
whit this changes it simple in the IDE menu and its way easier to use.

image

image

@asetyde
Copy link

asetyde commented Jan 2, 2016

Ok because I need a use Gdb debug becomes from old serial debug too few information .

I've see that my board it freeze and. I don't know why .. Rebuild and rewrite code many many times can do problems ..at now with new code board never it freeze ...

Use esp.reset / restart / eraseConfig and new flash can clean board ? Because I think it missed some part ..

Sent from my iPhone

On 02 gen 2016, at 13:16, Markus notifications@github.com wrote:

its manage the serial out debug messages.
its independent of GDBStub, its run-time debugging.

often we need more info when we get a new issue,
the we most ask to change this line and that to activate debug output.
whit this changes it simple in the IDE menu and its way easier to use.


Reply to this email directly or view it on GitHub.

@Links2004
Copy link
Collaborator Author

esp.reset / restart are only like shutdown and reset button on the computer.
eraseConfig will erase the SDK config area in flash.

for GDBstub take a look here:
https://github.com/esp8266/Arduino/tree/master/libraries/GDBStub

@asetyde
Copy link

asetyde commented Jan 2, 2016

Many Thanks

Sent from my iPhone

On 02 gen 2016, at 13:32, Markus notifications@github.com wrote:

esp.reset / restart are only like shutdown and reset button on the computer.
eraseConfig will erase the SDK config area in flash.

for GDBstub take a look here:
https://github.com/esp8266/Arduino/tree/master/libraries/GDBStub


Reply to this email directly or view it on GitHub.

@krzychb
Copy link
Contributor

krzychb commented Jan 2, 2016

Hi Markus,

This is great idea to bring this up to menu level for key libraries 👍

Generic ESP8266 Module is getting really rich of features.
Who will buy other types of modules? 😉

Krzysztof

Links2004 added a commit that referenced this pull request Jan 2, 2016
allow control of enabling debug and debug level from IDE
@Links2004 Links2004 merged commit 119f2cd into esp8266:master Jan 2, 2016
@hallard
Copy link
Contributor

hallard commented Jan 2, 2016

That's very interesting feature, if there any tips on how can we get this into our own sketches ?
I mean enable debug for any sketch and also use the serial defined in IDE ? Certainly with some #ifdef but I don't know the values I need to check ?

@Links2004
Copy link
Collaborator Author

it work with every sketch that enables the Serial interface that is selected as debug port.
you still can use the Serial interface for your own output,
the debug output is additional and will not disable any interface from usage in the sketch.

all used defines are listed here:
https://github.com/esp8266/Arduino/blob/master/boards.txt#L180-L207

the port has the define DEBUG_ESP_PORT possible value:
Disabled: define not existing
Serial: Serial
Serial1: Serial1

@hallard
Copy link
Contributor

hallard commented Jan 2, 2016

Exactly what I needed, thanks, and I wish an happy new year to all team members ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants