-
-
Notifications
You must be signed in to change notification settings - Fork 179
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
"Add Configuration..." not displaying PHP as an option #191
Comments
Having the same issue. PHP Version => 5.6.31 PHP Debug => 1.11.1 ext-xdebug.ini:
|
Feel free to do a PR to implement |
What caused the option to go away? In the interim of this being added back in the docs should probably be updated since it provides steps for the config that no longer function. |
Not sure what you are talking about. This option was never implemented |
Hmmm, so was VS Code taking care of some of the magic? Up until now, I've been able to follow the docs for the plugin to add the config. The docs no longer match the interactions inside of VS Code. |
This is specifically the section that no longer matches the interaction that would be expected after the plugin is installed. |
Well seems like VS Code removed support for @weinand is this a bug or was this removed on purpose? The initial config in the PHP adapter is not dynamic in any way so I never saw a reason to implement the RPC method for it |
I'm on vacation at the moment, but there was no intention to remove support for the static "initialConfigurations" contribution. |
VSCode still supports If I understand this issue correctly the problem is that the |
If the above is correct then would the following changes resolve this issue?
|
Probably, try it out and see (you can just modify the package.json of a php extension on the fly and relaod vscode). As I read above @felixfbecker is open to PRs so feel free to submit one |
When selecting `Add Configuration` in a VS Code launch.json file PHP is no longer shown as an option. The new `configurationSnippets` resolves this.
When selecting `Add Configuration` in a VS Code launch.json file PHP is no longer shown as an option. The new `configurationSnippets` resolves this.
I just checked on an empty project and the instructions as they are written in the README (click gear icon, select PHP) work completely fine, so I am going to close this issue. |
I have this exact same issue on Linux (Ubuntu 18.10) using Visual Studio Code 1.30.2. Clicking the cogwheel opens launch.json, which has this as the only contents:
There is an Add Configuration...-button, but it only shows Chrome and NodeJS items. |
I'm having this issue, too. Win 10 VS v 1.33.1 My Java debug extension displays suggested options, but it is not showing any for PHP. |
I was having the same issue on openSUSE Leap 15.1 VS Code 1.36.1, the cogwheel was opening a launch.json file with some node.js debugging configuration without showing the PHP option.I had already installed the PHP Debug extension, so I deleted the .vscode directory from the project folder and restarted VS Code, now the cogwhell allowed me to select the PHP option which generated a new .vscode directory with the default PHP debugging options. |
If you have already chosen a different debugger for the open folder then the PHP option will not appear again. The PHP debugger option reappears if you delete the .vscode/launch.json file. I came across this problem with a mixed source folder: python and php. I had already selected the python debugger. The configurationSnippets patch would be helpful so that PHP always appears in the list like the Chrome and Node.js ones do. |
this should be reopened. |
…nfiguration` in a VS Code launch.json file PHP is no longer shown as an option. The new `configurationSnippets` resolves this.
I already had this fix on an unreleased branch. Because there things got complicated I created a new PR. It was based on #194. |
🎉 This issue has been resolved in version 1.14.10 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I'm not able to add a config for a PHP debug session as it's not showing up in the add config menu.
I'm on 1.16.0 and have php 7.1.5 installed. Also, PHP Debug is @ version 1.11.1
It might also be able to put a complete config in the docs with some indication of what is required and what is optional.
The text was updated successfully, but these errors were encountered: