-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Substitution Value of ${workspaceFolder} Not As Expected #43867
Comments
@oniisaki currently we do not have builtin support to show the value of ${workspaceFolder} and other variables. Another alternative is to simply launch this javascript launch.json. Have a simple one line javascript file, and you will see in the the debug console something like (where the last part is the workspaceFolder resovled) {
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${file}",
"args": [
"${workspaceFolder}"
]
}
]
} If you find that $workspaceFolder is not resolved as expected please give us more details so we can investigate. What is the expected value, what is the actual value and steps to reproduce |
I'm also experiencing the same issue as @oniisaki with the felixfbecker xDebug extension. I followed the suggestions made by @isidorn and created a task to print out the values of
I receive the following output when executed:
I performed some further tests and found that the xDebug configuration is initialised, as per the following output from the xDebug extension
As you can see, it looks like the lowercase drive letter is referenced here. I went ahead and set this as a hard value in my launch.json xDebug configuration:
When executed, the code execution stopped on the correct breakpoints. I then changed the drive letter to an uppercase 'C', re-launched the debugger and this time the code execution was not stopped on my specified breakpoints. I hope you find the above information helpful and let me know if you need anything else. |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
See resolved issue from PHP Debug repo:
xdebug/vscode-php-debug#240
The issue there was resolved, but it seems like it might be an issue with VSCode variable substitution.
Essentially I'm trying to get PHP Debug to work over docker, I have a launch.json file of:
However, I expected ${workspaceFolder} to be my workspace root folder, something like:
c:/path/to/folder
That doesn't seem to be the case. When I define my VSLaunch code with absolute paths, everything works.
Are there any way I can figure out the value of "${workspaceFolder}" to see what's its substituting with?
The text was updated successfully, but these errors were encountered: