Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example launch.json for MSVC seems wrong. #4248

Open
FlyinCow opened this issue Jan 22, 2025 · 3 comments
Open

Example launch.json for MSVC seems wrong. #4248

FlyinCow opened this issue Jan 22, 2025 · 3 comments
Labels
more info needed More info is needed from the community for us to properly triage and investigate.

Comments

@FlyinCow
Copy link

In https://github.com/microsoft/vscode-cmake-tools/blob/main/docs/debug-launch.md#msvc

"environment": [
  {
    // add the directory where our target was built to the PATHs
    // it gets resolved by CMake Tools:
    "name": "PATH",
    "value": "${env:PATH}:${command:cmake.getLaunchTargetDirectory}"
  },

PATH in windows should use ; as a separator, this configuration won't work.

@Amy-Li03
Copy link
Collaborator

Hi @FlyinCow , thanks for reporting issue here!
We try to repro your issue on our side in windows platform using above command, unfortunately we cannot repro it, could you please provide a detailed repro steps or repro video for us?

Image

@Amy-Li03 Amy-Li03 added more info needed More info is needed from the community for us to properly triage and investigate. and removed triage labels Jan 24, 2025
@FlyinCow
Copy link
Author

FlyinCow commented Feb 7, 2025

@Amy-Li03
Sorry for late replying I'm not an email guy. I can't provide repro video because information security issue, but here are screen shots:

Won't work, you can see from the debug console that launching of debug target fails because of dll not loaded:
Image

Works:
Image

@FlyinCow
Copy link
Author

FlyinCow commented Feb 7, 2025

And dlls are not loaded in first picture, too. I noticed that it seems you are using CMD to reproduce, but my default shell is pwsh (powershell 7), maybe it has something to do with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more info needed More info is needed from the community for us to properly triage and investigate.
Projects
Status: Blocked
Development

No branches or pull requests

2 participants