Comments (18)
from phponwindows.
Did you look?
from phponwindows.
from phponwindows.
The problem is not in editing php.ini.
The problem is the PhpStorm does not stop at breaking points.
I have 2 configurations: one for OpenServer and one for WSL.
The configuration for OpenSrever is working without any problem.
The WSL configuration does not work.
from phponwindows.
Show your xdebug config from WSL
from phponwindows.
Here is my php.ini connfig:
[Xdebug]
zend_extension = /usr/lib/php/20151012/xdebug.so
xdebug.remote_autostart=1
xdebug.remote_enable=1
xdebug.remote_handler="dbgp"
xdebug.remote_host="localhost"
xdebug.remote_port=9001
xdebug.remote_mode=req
xdebug.idekey="PHPSTORM"
from phponwindows.
So yes, i cant debug too, in my case i am trying to run phpunit but it cant find ide-phpunit.php.
Try to use almost same php versions on windows and linux 7&7 or 5&5.
from phponwindows.
I use the same php versions on windows and linux: both are php7.0
But it does not help: debug does not work.
Is it possible to fix it?
from phponwindows.
The only option now is to use ssh tunel for CLI scripts debug, check this:
https://mobilefish.de/debugging-php-cli-scripts-phpstorm-which-are-running-inside-remote-server
from phponwindows.
The other option - check Stop in the first line in debug options window and you will see the error and possible solution from jetbrains
from phponwindows.
Then, as I believe, is your extension absolutely useless?
Is it not working in any case at all?
from phponwindows.
It worked before)) Try this
https://user-images.githubusercontent.com/29253087/33229839-ee49a1d6-d1df-11e7-8e20-a937f98ec8b6.png
P.S. And it is not mine)) I have only patched it to use with php unit
from phponwindows.
Yes but not now. It's a pity.
Thank you for your attention.
If you find any solution in the future please let me know.
from phponwindows.
https://user-images.githubusercontent.com/29253087/33229839-ee49a1d6-d1df-11e7-8e20-a937f98ec8b6.png
How did you see this error?
I don't have any info in my debug variables ...
from phponwindows.
Ok, i've managed it.
- Add server 127.0.0.1 or 0.0.0.0 and add path mapping windows vs linux
https://confluence.jetbrains.com/display/PhpStorm/Debugging+PHP+CLI+scripts+with+PhpStorm#DebuggingPHPCLIscriptswithPhpStorm-2.StarttheScriptwithDebuggerOptions - Open php-bridge.php
and before line$linuxCmd = ($envValues ? $envValues . ' ' : '') . 'php ' . implode(' ', $arguments);
add this$envValues = ' PHP_IDE_CONFIG="serverName=!heReYourServerInStormMapping!"';
- The debug session started working after adding PHP_IDE_CONFIG env AND deleting another env XDEBUG_CONFIG=idekey=...
- Last PHPStorm is cnanged so we should provide fix for php-bridge.php
And enjoy))
from phponwindows.
proof
servers
tmp source code changes
from phponwindows.
Checkout new fixed version here - https://github.com/ruslan-pelepets/PhpOnWindows
from phponwindows.
Fixed path trasnlation, no need anymore in PHP_IDE_CONFIG env param))
Follow old readme for IDE setup.
from phponwindows.
Related Issues (16)
- Support without Windows PHP installation HOT 1
- How to debug this project HOT 5
- phpunit does not get called properly HOT 1
- PHPUnit fails if execute separate test method
- PHP version: Not installed HOT 4
- Unexpected token near `(' HOT 1
- Works incorrectly
- PHP Inbuilt Server doesn't hit breakpoints HOT 3
- PHP inbuilt server does not exit HOT 2
- Script is slow every other request HOT 1
- Unable to connect to 127.0.0.1:9000 HOT 3
- Doesn't work without "sudo" on Windows 10 1803
- CLI Interpreter; Failed to parse validation script output HOT 8
- Does not work HOT 2
- Use "WSL" in github project title / description
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phponwindows.