nxp-mcuxpresso / vscode-for-mcux

Support for NXP Visual Studio Code for MCUXpresso Extension project.
19 stars 1 forks source link

launch.json executable path doesn't accept variables #53

Open viktor-refeyn opened 6 days ago

viktor-refeyn commented 6 days ago

If I add the following config to launch.json

{
    "type": "mcuxpresso-debug",
    "name": "MCUXpresso Project",
    "request": "launch",
    "cwd": "${workspaceFolder}",
    "executable": "${workspaceFolder}/build/NXP.elf",
}

I get the following error : [error] Executable "${workspaceFolder}/build/NXP.elf" does not exist.

The variable I try to use is according to this: https://code.visualstudio.com/docs/editor/variables-reference

I tried the following combinations too, without much success:

DragosMiloiuNXP commented 5 days ago

Hi @viktor-refeyn,

Issue reproduced. It will be fixed by the next release.

Possible workarounds:

Thanks, Dragos.