in multi configuration in vscode, use "compile arguments"

joreika
Posts: 3
Joined: Wed Feb 21, 2024 3:06 pm

in multi configuration in vscode, use "compile arguments"

Postby joreika » Wed Feb 21, 2024 3:16 pm

Hello,

I have followed [this][https://github.com/espressif/esp-idf/bl ... /README.md] and [this][/https://github.com/espressif/vscode-esp ... _config.md] to be able to support multiple configurations in a single project. So I have develop and production settings. But I want to add some variables that are defined in the develop configuration (e.g. DEBUG). I try to add it in the "compile arguments" in the "develop" settings from the menu "ESP-IDF: Open project configurations". There in "compile arguments" I add "-DDEBUG" (also tried adding "-D DEBUG" and "-D DEBUG=1" etc.), but it always fails with

Code: Select all

The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake -DDEBUG=TRUE -B c:\test_esp\build_dev -S c:\test_esp -DSDKCONFIG_DEFAULTS='sdkconfig.defaults;sdkconfig.dev'" terminated with exit code: 1.
It does not work whatever I do. Has anybody experienced this issue? Or what am I doing wrong?

thank you

Who is online

Users browsing this forum: No registered users and 47 guests