-
Notifications
You must be signed in to change notification settings - Fork 45
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
docker: invalid reference format #151
Comments
As a possible workaround, could you make the extension honor
This almost works. It does not throw an error. 😄 See:
However, it is ignoring the environment variables' values, not injecting them, so it does not stop when it hit my breakpoints. Again, I can run the same command from a terminal, where those env vars are defined like above, and it breaks appropriately. |
I've had luck doing it with ini definitions instead of environment vars "phpunit.command": "docker-compose exec -T webapp /bin/sh -c",
"phpunit.phpunit": "./vendor/bin/phpunit",
"phpunit.args": [
"-c", "./phpunit.xml",
],
"phpunit.php": "/usr/local/bin/php -d 'zend_extension=xdebug.so' -d 'xdebug.mode=debug,coverage' -d 'xdebug.client_host=host.docker.internal' -d 'xdebug.client_port=10427' -d 'xdebug.discover_client_host=1' -d 'xdebug.remote_handler=dbgp' -d 'xdebug.start_with_request=yes'", |
I'm trying to run a select test in a Docker container. My
settings.json
looks like:If I initiate a debugging launch with the following from
.vscode/launch.json
:The following appears in the "OUTPUT" pane, when "playing" the desired test:
The curious thing is that I can copy-paste that command directly into any terminal, even VScode's integrated terminal, and it works!
Is there some strange quoting that is occurring but not appearing in the above command?
Installation Details:
The text was updated successfully, but these errors were encountered: