Add Core Debug Level option to Tools menu for all boards in boards.txt #6110
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Using an ESP32 board (namely an Olimex Gateway) I ran into an issue in an Ethernet library that could be debugged simply by setting the core debug level. Looking into it, most boards had this option configurable from the Arduino Tools menu, but a few (including mine) were missing that menu for some reason. I've added the menu for my board, but in addition I've added it for all boards in "boards.txt" because I couldn't think of a reason someone with any board wouldn't want this feature, but let me know if there is any reason to the contrary.
I also cleaned up some messy whitespace, sorry if that makes the commit harder to read.
Impact
All boards offered by the Arduino ESP32 library will now provide a "Core Debug Level" option under the Arduino Tools menu that can be set to "None", "Error", "Verbose", etc.