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

Che 7 plugin: PHP Debugger #12795

Closed
tsmaeder opened this issue Feb 28, 2019 · 3 comments · Fixed by eclipse-che/che-plugin-registry#137
Closed

Che 7 plugin: PHP Debugger #12795

tsmaeder opened this issue Feb 28, 2019 · 3 comments · Fixed by eclipse-che/che-plugin-registry#137
Labels
kind/enhancement A feature request - must adhere to the feature request template.

Comments

@tsmaeder
Copy link
Contributor

Build and test a Che 7 plugin based on https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug

As always, this involves testing the extension inside Theia and filing any issues found and then finding or creating an appropriate image to run the sidecar and creating the plugin metadata for the plugin repo.

@tsmaeder tsmaeder added kind/enhancement A feature request - must adhere to the feature request template. team/languages labels Feb 28, 2019
@tsmaeder tsmaeder mentioned this issue Apr 5, 2019
15 tasks
@vrubezhny
Copy link
Contributor

vrubezhny commented Apr 9, 2019

It is possible to install (and I believe to launch) the felixfbecker.php-debug extension in theia together with bmewburn.vscode-intelephense-client extension (requires the PR eclipse-theia/theia#4772 to be applied).
The extension requires php, php-devel and php-pecl-xdebug to be installed on the system and have php to be configured to use Xdebug Zend extension in php.ini:

; Use Zend extension with Xdebug:
zend_extension="xdebug.so"

[XDebug]
xdebug.remote_enable = 1
xdebug.remote_autostart = 1

However I currently I can't run a test php script in debuger as it complains on not recognized debug type php which I've used to create a launch configuration:

        {
            "name": "Launch currently open script",
            "type": "php",
            "request": "launch",
            "program": "${file}",
            "cwd": "${fileDirname}",
            "port": 9000
        }

plugins-and-unknown-php-debug-type

@vrubezhny
Copy link
Contributor

vrubezhny commented Apr 9, 2019

Well, I can start the felixfbecker.php-debug extension and the degugger works on my simple test php file:
php-debug-in-theia

But in order to make it possible I had to modify the package.json of the extension by adding "main": "./out/extension", attribute into it.
The problem is that the original extension doesn't have neither main attribute in its package.json, nor the extension.js file, and, as such, it is loaded, but never activated in Theia.

@davidwindell
Copy link
Contributor

@vrubezhny I'd appreciate your input on #15740 if you have a moment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants