-
Notifications
You must be signed in to change notification settings - Fork 35
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
Why it says that is supports phpstorm ide, when tests cases for phpstorm compatability fail #95
Comments
And as expected it doesn't work with phpstorm ide so it renders it kind of usless. That command line debugging too time consuming. |
Your test environment is not initialized well, you can look at YASD's CI: |
so is it expected to work with phpstorm or not? I'm also unable to get it stop on breakpoints. |
Even if tests pass probably they do not cover actual PHPStorm behaviour. Because I cannot make a breakpoint with this extension as well. I enable that yasd would send debug requests on evey request from docker php:alpine. But it seems phpstorm ignore everything send from yasd or yasd is not sending, haven't configured logs for it to see if there is connectivity issue. But with same image, but xdebug 3 installed with xdebug.mode=debug works without any problems, unless I enable swoole extension. :D |
Btw, it's said it supports vscode. Any luck with that one? |
Yasd supports vscode and phpstorm. Maybe you should show me how you configure yasd? |
okay. The php-side setup
Phpstorm-side setupphpstorm version: 2020.1 (bit old) configuration of the "interpreter": I have a simple script where i have set breakpoints at each and every line: Expectationin the setup above, I was expecting to have the first breakpoint hit when clicking here: however, it does not happen if i click on the "bug" icon instead, it gets me this: running a container from that image, i can confirm that it can reach the phpstorm's port: |
* a few notes in readme regarding using phpstorm (related to #95) * a note regarding allowing remote connections
@hq9000 Thank you! |
Okay on my side setup is like that: But when I enable swoole and yasd with above configurations, and run instead of Do I still need to enable web cookie listening? Even if I run custom PHP Remote Debug script? @hq9000 are you using PHP8? Okay will try running laravels with |
@juslintek i use php 7.4. |
@juslintek Yasd is not xdebug or sdebug, so you cannot use yasd in the same way as xdebug. The use of yasd is very easy, just click the listen button of phpstorm, and then execute php with -e. Don't need to configure cookies etc. Do you use a virtual machine or container, and, you need to show me how you configure yasd: php --ri yasd |
@juslintek Can you debug the test.php file in the yasd directory? |
@huanghantao yes. |
Okay actually I lied, I haven't tried, when I tried with file like this:
I even checked break at first line. And nothing helped. I've ran from inside alpine php docker container on which I've compiled yasd with swoole. so I run:
and IDE is not opening debug inspection view... |
Guess I'll just go back to sdebug and wait for it to support php8, then upgrade to it. :-( As well tried to map 9000 port via docker to 9000. And I've got this error:
Guess it doesn't matter because php is sending package from anywhere it is executed to target server deubg listener. |
So final result of YASD is that it is not working with PHPStorm 2020.3.2 and latest Early Access, while using Docker. |
Anyone get PhpStorm and YASD to work without using docker? I just compiled yasd 0.3.7 manually and would expect it to work without needing to map any paths. It's connecting to PhpStorm just not stopping and any of the breakpoints set. Same results using master branch.
NetBeans debug config just like shown above and release 2020.3.3. What could the problem be? Is there any more resources like debug logs I can use to troubleshoot this? It seems PhpStorm is not passing the breakpoints correctly to yasd but I don't know where to begin to correct it. |
Seems like its not working for me. If I run If I run without As well why it is closed if its is not resolved to full extent. :-) |
@superdav42 You can configure the following configuration: yasd.log_level=0 You will get a file called debug.log in your current directory. |
@superdav42 It is recommended that you first debug the |
same here |
How to debug a Swoole-based web server using yasd (Yet Another Swoole Debugger) in Phpstorm? Please check here: https://github.com/swoole/docker-swoole/tree/master/examples/35-debug-with-yasd |
Please answer these questions before submitting your issue. Thanks!
make test
All passed
uname -a
&php -v
&gcc -v
) ?uname -a
php -v
gcc - v
The text was updated successfully, but these errors were encountered: