-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Core & Wifi debug output sent to serial port despite "None" Debug Level in Arduino's IDE #5186
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
Comments
You can prevent unwanted debug output by setting debug port to Disabled. Apparently some debug messages are sent by default, if the port is enabled. Your serial messages are not 'debug' messages from the Core's point of view. I always use Debug Level: 'NoAssert-NDEBUG' with Debug Port: 'Disabled', as that will free up additional heap. |
In previous version they were not, unless I selected CORE and/or WIFI in the "Debug Level". (the Debug Level option in the Arduino's IDE, for some reason, only allows to choose between a predefined set of combinations, e.g. "THIS", "THAT", "THIS+THAT", etc, but not all the combinations. Why they didn't create a set of checkboxes instead of a list of [not all] possible combinations is beyond my understanding). Until 2.4.2 it behaved as expected, this is a regression.
Yeah, but that will also prevent wanted debug output. I used to be able, for example, to choose only "HTTP_CLIENT", and I would see debug messages related to http client, but not those mentioned above related to wifi, deep sleep etc. Something is BROKEN. |
Have you tested this using the git version? There has been code cleanup since 2.4.2's release that may affect this. I have never seen unwanted debug messages myself, but always use the git version. Something in the SDK may have changed and gone unnoticed. As for the THIS+THAT stuff, this ESP8266 core project has no influence on the Arduino IDE, and can only work within the confines they establish for their board manager. You can participate in that totally separate project at: https://github.com/arduino/Arduino |
I am testing the git version, as I said. It might not be the very last one, but I cloned it about a week ago. 2.4.2 was the last stable version where I did not observe the issue.
I know, that's why I said "they". That was just an unrelated rant of mine. |
Just checked with the latest git version, issue still present. |
Actually that's not true. It worked on 2.4.0. The Arduino IDE sometimes randomly changes its settings (yes, it does), and apparently it changed the "Debug Port" to "Disabled" when I switched to testing with 2.4.2. I have checked again, and on 2.4.0. it behaves as expected: messages such as these:
only show up if the selected Debug Level includes However, I now see that the unwanted wifi-related messages in the recent versions are different (quoted in my original report). Perhaps the issue is that new debug messages have been introduced that do not use the macros (or whatever they are) that are controlled via Debug Level. |
These messages are not ours but fw's. |
Those specific messages don't show up anymore. Now what I see are messages like these:
I don't know if these are a replacement for the older ones, or if they are totally unrelated. The fact is, the old ones behaved as expected (used Then there are these:
and also this one, unrelated to wifi, which I guess should belong to
If any of this is not yours please let me know where I should report the issue/s. This makes debugging a pain in the *** (or rather just undoable) and it's tremendously annoying.
|
They are not ours but espressif's. I doubt they consider this as an issue. |
@d-a-v is correct, those messages come from the SDK, not from our core. You can try opening an issue at the Espressif esp8266 nonos repo. However, you should be aware that they usually take long to respond, if at all. I have issues of much higher priority than some debug msgs aging nicely there, and I've seen many others as well.
|
Given that there is nothing to do in our core code at this time, I'm closing this for now. If there is a response from Espressif that implies changes in this repo, we can revisit and I'll reopen, or we can track with a new issue. |
Basic Infos
Platform
Settings in IDE
Problem Description
In the Arduino IDE, if I select "None" for the "Debug Level" setting, I expect to not see any debug output in the serial monitor except what I output from my code (or from some third party library).
That worked as expected at least until 2.4.0.
Now with the git version, I'm getting debug output from, I think, WIFI and/or CORE, even though I select "None" as the Debug Level in the IDE.
Arduino Sketch
EXPECTED Output (Serial Monitor)
OBSERVED Output (Serial Monitor)
The text was updated successfully, but these errors were encountered: