Giter Site home page Giter Site logo

Does not work about phponwindows HOT 18 OPEN

battlekeys avatar battlekeys commented on May 28, 2024
Does not work

from phponwindows.

Comments (18)

ruslan-pelepets avatar ruslan-pelepets commented on May 28, 2024

from phponwindows.

battlekeys avatar battlekeys commented on May 28, 2024

Did you look?

from phponwindows.

ruslan-pelepets avatar ruslan-pelepets commented on May 28, 2024

from phponwindows.

battlekeys avatar battlekeys commented on May 28, 2024

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.

ruslan-pelepets avatar ruslan-pelepets commented on May 28, 2024

Show your xdebug config from WSL

from phponwindows.

battlekeys avatar battlekeys commented on May 28, 2024

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.

ruslan-pelepets avatar ruslan-pelepets commented on May 28, 2024

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.

battlekeys avatar battlekeys commented on May 28, 2024

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.

ruslan-pelepets avatar ruslan-pelepets commented on May 28, 2024

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.

ruslan-pelepets avatar ruslan-pelepets commented on May 28, 2024

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.

battlekeys avatar battlekeys commented on May 28, 2024

Then, as I believe, is your extension absolutely useless?
Is it not working in any case at all?

from phponwindows.

ruslan-pelepets avatar ruslan-pelepets commented on May 28, 2024

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.

battlekeys avatar battlekeys commented on May 28, 2024

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.

battlekeys avatar battlekeys commented on May 28, 2024

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.

ruslan-pelepets avatar ruslan-pelepets commented on May 28, 2024

Ok, i've managed it.

  1. 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
  2. Open php-bridge.php
    and before line $linuxCmd = ($envValues ? $envValues . ' ' : '') . 'php ' . implode(' ', $arguments);
    add this $envValues = ' PHP_IDE_CONFIG="serverName=!heReYourServerInStormMapping!"';
  3. The debug session started working after adding PHP_IDE_CONFIG env AND deleting another env XDEBUG_CONFIG=idekey=...
  4. Last PHPStorm is cnanged so we should provide fix for php-bridge.php

And enjoy))

from phponwindows.

ruslan-pelepets avatar ruslan-pelepets commented on May 28, 2024

proof
2017-11-25_1442
servers
settings
tmp source code changes
php-source

from phponwindows.

ruslan-pelepets avatar ruslan-pelepets commented on May 28, 2024

Checkout new fixed version here - https://github.com/ruslan-pelepets/PhpOnWindows

from phponwindows.

ruslan-pelepets avatar ruslan-pelepets commented on May 28, 2024

Fixed path trasnlation, no need anymore in PHP_IDE_CONFIG env param))
Follow old readme for IDE setup.

from phponwindows.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.