my last post was inadvertently sent to server before I was done editing

and I had difficulty editing it afterwards, so I'll instead continue here.
certainly if I switch off debug, that solves the problem.
however - I also do not have any breakpoints and I'd like to be able to use debug features.
curiously, the problem for me seems to be related to some "conditional parameters" that I am using (perhaps there's a better way of doing this?) Although a "seasoned" software engineer, I am relatively new to open source & GitHub; I thought that perhaps keeping my config in a separate & common location would ensure passwords would never get published to GitHub - regardless of gitignore settings, etc.
This code fails to compile in debug mode:
//***************************************************
// My config is stored in myPrivateSettings.h file
// if you choose not to use such a file, set this to false:
#define USE_myPrivateSettings true
#if USE_myPrivateSettings == true
#include "/workspace/myPrivateSettings.h"
#else
//create your own myPrivateSettings.h, or edit the following lines:
const char* WIFI_SSID = "my-wifi-SSID";
const char* WIFI_PWD = "my-WiFi-PASSWORD";
const char* DASHBOARD_URL = "/mylink/myfile.json";
const char* DASHBOARD_HOST = "mydashboardhost.com";
#endif
//***************************************************
void setup()
{
/* add setup code here */
}
void loop()
{
/* add main program code here */
}
with this error:
Building project code ...
elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ 2.3.0/tools/sdk/include" 2.3.0/tools/sdk/lwip/include" u\Debug/core" -c -Wall -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10801 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD=\"ESP8266_NODEMCU\" -DESP8266 2.3.0\cores\esp8266" 2.3.0\variants\nodemcu" -I"C:\Program Files (x86)\Arduino\libraries" 2.3.0\libraries" -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\j3ioxtms.agx\Micro Platforms\default\debuggers" -I"C:\Users\gojimmypi\Documents\Arduino\libraries" Debug\VisualMicroTest.cpp" -o Debug\VisualMicroTest.cpp.o" -DVM_DEBUG -DVM_DEBUG_ENABLE=1 -DVM_DEBUG_BANDWIDTH_THROTTLE_MS=50 -DVM_DEBUGGER_TYPE_HARDWARESERIAL=0 -DVM_DEBUGGER_TYPE_SOFTWARESERIAL=1 -DVM_DEBUGGER_TYPE_FASTSERIAL=2 -DVM_DEBUGGER_TYPE_USB=3 -DVM_DEBUGGER_TYPE_TEENSY=4 -DVM_DEBUGGER_TYPE_UART=5 -DVM_DEBUGGER_TYPE_USART=6 -DVM_DEBUGGER_TYPE_USBSERIAL=7 -DVM_DEBUGGER_TYPE_TTYUART=8 -DVM_DEBUGGER_TYPE_NET_CONSOLE=9 -DVM_DEBUGGER_TYPE_Uart=10 -DVM_DEBUGGER_TYPE_COSA=11 -DVM_DEBUGGER_TYPE_CDCSerialClass=12 -DVM_DEBUGGER_TYPE_HARDWARESERIAL1=13 -DVM_DEBUGGER_TYPE_HARDWARESERIAL2=14 -DVM_DEBUGGER_TYPE_HARDWARESERIAL3=15 -DVM_DEBUGGER_TYPE_NET_UDP=16 -DVM_DEBUGGER_TYPE=VM_DEBUGGER_TYPE_HARDWARESERIAL -DVM_DEBUG_BREAKPAUSE
Error compiling project sources
Debug build failed for project 'VisualMicroTest'
VisualMicroTest.ino: In function void setup()
VisualMicroTest.ino: 17:16: error: 'MicroDebug' was not declared in this scope
void setup() {
debugger: The error shown above might be caused by invalid breakpoint syntax or the board is not yet supported for debugging (pls let us know!)
However this code compiles successfully (note the only change is the unused const values are commented out)
//***************************************************
// My config is stored in myPrivateSettings.h file
// if you choose not to use such a file, set this to false:
#define USE_myPrivateSettings true
#if USE_myPrivateSettings == true
#include "/workspace/myPrivateSettings.h"
#else
//create your own myPrivateSettings.h, or edit the following lines:
//const char* WIFI_SSID = "my-wifi-SSID";
//const char* WIFI_PWD = "my-WiFi-PASSWORD";
//const char* DASHBOARD_URL = "/mylink/myfile.json";
//const char* DASHBOARD_HOST = "mydashboardhost.com";
#endif
//***************************************************
void setup()
{
/* add setup code here */
}
void loop()
{
/* add main program code here */
}
I must be missing something obvious here, as I would not have expected the unused code needing to be commented out to avoid the "'MicroDebug' was not declared" error.
What are your thoughts on this?
I am using Visual Studio 14.0.25341.01 Update 3 and Visual Micro 1701.19.1 (registered user)
Thanks again for your assistance.