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 and Verbose
  • 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
Normal Topic ESP Verbose Debug Level (Read 1356 times)
The_Specialist
Full Member
***
Offline


Posts: 220
Joined: Jul 1st, 2020
ESP Verbose Debug Level
Mar 22nd, 2022 at 10:02am
Print Post  
Hi,

I tried to set the board.txt to level 5 for verbose level, but no output of verbose, the strange thing is that in the visual micro menu I have only: error, info, warning, debug is showed

when I add this to my code I have also only those four output to my serial monitor.


Quote:
#ifdef CORE_DEBUG_LEVEL
#undef CORE_DEBUG_LEVEL
#endif
//
#define CORE_DEBUG_LEVEL 5

void setup() {
     Serial.begin(115200);
     while (!Serial);

     Serial.setDebugOutput(true);
     //log_v("Verbose");
     //log_d("Debug");
     //log_i("Info");
     //log_w("Warning");
     //log_e("Error"); [/code]


« Last Edit: Mar 22nd, 2022 at 10:02am by The_Specialist »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
The_Specialist
Full Member
***
Offline


Posts: 220
Joined: Jul 1st, 2020
Re: ESP Verbose Debug Level
Reply #1 - Mar 22nd, 2022 at 10:22am
Print Post  
I changed the wrong one in the board.txt. This is what I got

v1.menu.DebugLevel.none=Noneesp32doit-devkit-
v1.menu.DebugLevel.none.build.code_debug=0esp32doit-devkit-
v1.menu.DebugLevel.error=Erroresp32doit-devkit-
v1.menu.DebugLevel.error.build.code_debug=1esp32doit-devkit-
v1.menu.DebugLevel.warn=Warnesp32doit-devkit-
v1.menu.DebugLevel.warn.build.code_debug=2esp32doit-devkit-
v1.menu.DebugLevel.info=Infoesp32doit-devkit-
v1.menu.DebugLevel.info.build.code_debug=3esp32doit-devkit-
v1.menu.DebugLevel.debug=Debugesp32doit-devkit-
v1.menu.DebugLevel.debug.build.code_debug=4esp32doit-devkit-

Soo I have add

v1.menu.DebugLevel.verbose=Verboseesp32doit-devkit-
v1.menu.DebugLevel.verbose.build.code_debug=5esp32doit-devkit-

It still doesn't shown up.
« Last Edit: Mar 22nd, 2022 at 10:30am by The_Specialist »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 1615
Joined: Feb 13th, 2019
Re: ESP Verbose Debug Level
Reply #2 - Mar 22nd, 2022 at 10:42am
Print Post  
Thanks for the report.

The verbose option has not been added for that board menu, which is supplied by the espressif esp32 board package to Visual Micro.   

Can you confirm if you are adding the new menu entries in the board packages board.txt, or into a local board.txt within the project?

  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 1615
Joined: Feb 13th, 2019
Re: ESP Verbose Debug Level
Reply #3 - Mar 22nd, 2022 at 11:10am
Print Post  
You can override the currently selected entry on the board menu, by adding a local board.txt file to the project (vMicro > Add Code > Add Local board.txt), and then adding the below entry, in this case it will override the "None" option to be "Verbose":
Code
Select All
menu.DebugLevel.none.build.code_debug=5 



Alternatively you can modify the board.txt in the installed esp32 board package, to add the entries for your board.  Once changed ensure you restart Visual Studio to make sure the new menu item is visible.





  
Back to top
 
IP Logged
 
The_Specialist
Full Member
***
Offline


Posts: 220
Joined: Jul 1st, 2020
Re: ESP Verbose Debug Level
Reply #4 - Mar 25th, 2022 at 1:42pm
Print Post  
Yes, I tried to add the verbose option to the board.txt, but it diden't work.

I found out that it is board depended. For example the MH ET Live ESP32 mini does have the verbose option too select. Very strang why the doit doesn't apply to that.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint