You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Launch.json isn't sync with tasks.json. It mean when debugging a C or C++ file you get a error "launch program does not exist"
I remplaced the default program line "program": "enter program name, for example ${workspaceFolder}/a.exe" by "program": "${fileBasenameNoExtension}.exe"
And now it works... Why it isn't by default ? I though I f***ed up my compiler installation ;-;
How are you creating your launch configuration? Are you using the "Add Configuration..." button in the editor? Improvements to this flow are on our radar, but we haven't had the chance to implement anything yet.
However, it looks like you are doing something similar to a feature that we already have: Build and Debug Active File. If you click the gear icon in the upper right side of the editor while your source file is active, the extension will generate both the task and the launch configuration for you in a way similar to what you describe.
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
Launch.json isn't sync with tasks.json. It mean when debugging a C or C++ file you get a error "launch program does not exist"
I remplaced the default program line
"program": "enter program name, for example ${workspaceFolder}/a.exe"
by"program": "${fileBasenameNoExtension}.exe"
And now it works... Why it isn't by default ? I though I f***ed up my compiler installation ;-;
Debugger Configurations
Debugger Logs
Other Extensions
No response
Additional Information
The error is present also in GCC configuration
The text was updated successfully, but these errors were encountered: