In some cases you may wish to only include code or libraries when you are not using Hardware Debugging.
For example when using the ESP32-WROVER-KIT board you cannot use the Micro SD Library or hardware due to pin conflicts with the JTAG Pins.
You must ensure the below option is enabled for this to work correctly when including Libraries and Headers:-
vMicro > Compiler > Deep Search for Libraries + Accurate Prototype Insertion (Gcc-E)
Exclude Code When Debugging
#ifndef VM_DEBUG_GDB
// This code will be included when NOT Hardware Debugging
#endif
Include Code When Debugging
#ifdef VM_DEBUG_GDB
// This code will be included when using Hardware Debugging
#endif