I am somewhat new to using VisualGDB, so my apologies if I’m missing something stupid. Here is my setup
I have an Arduino Project base on SAMD21J18 processor. I have no issues compiling, uploading, and debugging with Jlink.
However under VisualGDB Project Properties, if I check the “Arduino Libraries” under “Debug build disables optimization for:”, then it won’t compile and I get the following error.
“Command-line action failed”
From what I can tell the only different on the command to compile is on the arguments line it changes the unoptimize argument from “-unoptimize=sketch” to “-unoptimize=sketch,libraries”
I also tried with just libraries checked so it would be “-unoptimize=libraries” but that gave the same issue,
I have a library I would like to debug, so would be nice if I could get it to work. As without it, the variables in the library just show <optimized out> when running the debugger.
Let me know if need to copy a log or something. I didn’t as I’m not even sure what you would need.
Thanks,
Tom