-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
Local to server path translation fails #197
Comments
So from the logs I see
which is obviously wrong. |
I have all three disks mapped to folders on that server - S, R, and Y :) The clean case of the issue is on Y:, which corresponds to /home/seva/yarxidev. That one is in the log, too. Near the bottom. |
Could you give me your debug adapter log (as mentioned in the issue template)? |
Even better would be a failing test case. Here's the test that should cover your case: |
Where can I find the debug adapter log, please? |
In the debug console after setting |
Started debugging, brought up the admin_main page. Got this:
|
That log mentions |
Shoot. Obsolete launch.json, sorry. Now it looks like this:
I'm trying to find a workaround on my end, too. |
To be clear, the right server path would be |
Yes, /home/seva/yarxidev/admin_main.php . Both Y:\ and R:\yarxidev point at that folder. |
The casing doesn't match. VS Code sends |
Windows drive letters are case insensitive. |
Changing the |
I saw your commit. I'm afraid it will break for scenario such as mine, if the server path is a Linux one and it contains uppercase letters. Given server path setting like And I can't imagine what happens if the client machine is Linux, too. I've never used VSCode on Linux, only read about it. |
Not sure why you think that'd break. This only lowercases the drive letter |
Oops, sorry, it seemed to me on the first glance that it would lowercase the whole path. |
@sevaa @felixfbecker So seems like this is not an issue? |
Not anymore, there's an obvious workaround. It's still a bug, drive letters should not be treated as case insensitive. |
@sevaa Please go ahead and close the issue on github. As a side note, not all operating systems treat drive letters as case insensitive, it's up to the developer of the OS usually, in your case Microsoft (?). |
Other than Windows (and ancient MS-DOS, and also CP/M), name one OS with a concept of drive letters :) |
@sevaa I remember Symbian used to have it, as well as Xbox I think. Unix based systems don't have the drive letters usually, but other non-unix ones sometimes do. P.S. This is getting off-topic. |
Already solved #245. And the wonderful discussion about drive letters should be had somewhere they serve 🍻 😁 |
PHP version: 5.6.17-0+deb8u1
XDebug version: 2.2.5
Adapter version: 1.11.1
Your launch.json:
XDebug php.ini config:
XDebug logfile (from setting
xdebug.remote_log
in php.ini):xdebug-remote.log
My project resides on a folder on a Debian Linux server with XDebug, and I'm trying to debug it from a Windows machine. The server-side path of the project is /home/seva/yarxidev. It's shared via SAMBA as \servername\yarxidev. It's mapped to the Y: drive on my Windows box.
When I try to debug, the breakpoints are not hit unless
stopOnEntry
is set to true. If I look at the Xdebug log, the path to the file that it gets isfile:///home/seva/y:/admin_main.php
, which is wrong.Opening the folder via its UNC path doesn't help; in an unrelated bug, VSCode doesn't see launch.json at all, there are no launch configurations present in the list.
Mapping /home/seva as R: and opening R:\yarxidev in VSCode doesn't help, either.
The text was updated successfully, but these errors were encountered: