yasd: Why it says that is supports phpstorm ide, when tests cases for phpstorm compatability fail
Please answer these questions before submitting your issue. Thanks!
- What did you do? If possible, provides a simple script and debug step to reproduce the problem.
make test
- What did you expect to see?
All passed
- What did you see instead?
Don't forget to run 'make test'.
=====================================================================
PHP : /usr/local/Cellar/php/8.0.2/bin/php
PHP_SAPI : cli
PHP_VERSION : 8.0.2
ZEND_VERSION: 4.0.2
PHP_OS : Darwin - Darwin Linass-MacBook-Pro.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64
INI actual : /Users/juslintek/yasd/tmp-php.ini
More .INIs :
---------------------------------------------------------------------
PHP : /usr/local/Cellar/php/8.0.2/bin/phpdbg
PHP_SAPI : phpdbg
PHP_VERSION : 8.0.2
ZEND_VERSION: 4.0.2
PHP_OS : Darwin - Darwin Linass-MacBook-Pro.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64
INI actual : /Users/juslintek/yasd/tmp-php.ini
More .INIs :
---------------------------------------------------------------------
CWD : /Users/juslintek/yasd
Extra dirs :
VALGRIND : Not used
=====================================================================
TIME START 2021-02-22 09:43:21
=====================================================================
FAIL issue: 41 [tests/yasd_debugger/issue/41.phpt]
PASS opcode: getOpcodeByName [tests/yasd_debugger/opcode/getOpcodeByName.phpt]
FAIL remote_mode: breakpoint_list [tests/yasd_debugger/remote_mode/breakpoint_list.phpt]
FAIL remote_mode: breakpoint_set [tests/yasd_debugger/remote_mode/breakpoint_set/breakpoint_set.phpt]
TEST 5/20 [tests/yasd_debugger/remote_mode/breakpoint_set/breakpoint_set_conditiFAIL breakpoint_set: breakpoint_set_conditional_line [tests/yasd_debugger/remote_mode/breakpoint_set/breakpoint_set_conditional_line.phpt]
FAIL remote_mode: context_get [tests/yasd_debugger/remote_mode/context_get.phpt]
TEST 7/20 [tests/yasd_debugger/remote_mode/context_get/superglobal_variable.phptFAIL context_get: superglobal_variable [tests/yasd_debugger/remote_mode/context_get/superglobal_variable.phpt]
FAIL remote_mode: context_names [tests/yasd_debugger/remote_mode/context_names.phpt]
FAIL remote_mode: eval [tests/yasd_debugger/remote_mode/eval.phpt]
FAIL remote_mode: feature_set [tests/yasd_debugger/remote_mode/feature_set.phpt]
TEST 11/20 [tests/yasd_debugger/remote_mode/infinite_loop_detection/for_loop.phpFAIL infinite_loop_detection: for_loop [tests/yasd_debugger/remote_mode/infinite_loop_detection/for_loop.phpt]
TEST 12/20 [tests/yasd_debugger/remote_mode/infinite_loop_detection/goto_label_lFAIL infinite_loop_detection: goto_label_loop [tests/yasd_debugger/remote_mode/infinite_loop_detection/goto_label_loop.phpt]
TEST 13/20 [tests/yasd_debugger/remote_mode/phpstorm/compatible_with_phpstorm.phFAIL phpstorm: compatible_with_phpstorm [tests/yasd_debugger/remote_mode/phpstorm/compatible_with_phpstorm.phpt]
FAIL phpstorm: eval [tests/yasd_debugger/remote_mode/phpstorm/eval.phpt]
TEST 15/20 [tests/yasd_debugger/remote_mode/property_get/classnamme_array_key.phFAIL property_get: classnamme_array_key [tests/yasd_debugger/remote_mode/property_get/classnamme_array_key.phpt]
TEST 16/20 [tests/yasd_debugger/remote_mode/property_get/nmerical_index_array.phFAIL property_get: nmerical_index_array [tests/yasd_debugger/remote_mode/property_get/nmerical_index_array.phpt]
FAIL remote_mode: stack_get [tests/yasd_debugger/remote_mode/stack_get.phpt]
FAIL remote_mode: stdout [tests/yasd_debugger/remote_mode/stdout.phpt]
FAIL remote_mode: stop [tests/yasd_debugger/remote_mode/stop.phpt]
PASS zval: getRefCount [tests/yasd_debugger/zval/getRefCount.phpt]
=====================================================================
TIME END 2021-02-22 09:43:22
=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped : 0
Exts tested : 64
---------------------------------------------------------------------
Number of tests : 20 20
Tests skipped : 0 ( 0.0%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 18 ( 90.0%) ( 90.0%)
Tests passed : 2 ( 10.0%) ( 10.0%)
---------------------------------------------------------------------
Time taken : 1 seconds
=====================================================================
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
issue: 41 [tests/yasd_debugger/issue/41.phpt]
remote_mode: breakpoint_list [tests/yasd_debugger/remote_mode/breakpoint_list.phpt]
remote_mode: breakpoint_set [tests/yasd_debugger/remote_mode/breakpoint_set/breakpoint_set.phpt]
breakpoint_set: breakpoint_set_conditional_line [tests/yasd_debugger/remote_mode/breakpoint_set/breakpoint_set_conditional_line.phpt]
remote_mode: context_get [tests/yasd_debugger/remote_mode/context_get.phpt]
context_get: superglobal_variable [tests/yasd_debugger/remote_mode/context_get/superglobal_variable.phpt]
remote_mode: context_names [tests/yasd_debugger/remote_mode/context_names.phpt]
remote_mode: eval [tests/yasd_debugger/remote_mode/eval.phpt]
remote_mode: feature_set [tests/yasd_debugger/remote_mode/feature_set.phpt]
infinite_loop_detection: for_loop [tests/yasd_debugger/remote_mode/infinite_loop_detection/for_loop.phpt]
infinite_loop_detection: goto_label_loop [tests/yasd_debugger/remote_mode/infinite_loop_detection/goto_label_loop.phpt]
phpstorm: compatible_with_phpstorm [tests/yasd_debugger/remote_mode/phpstorm/compatible_with_phpstorm.phpt]
phpstorm: eval [tests/yasd_debugger/remote_mode/phpstorm/eval.phpt]
property_get: classnamme_array_key [tests/yasd_debugger/remote_mode/property_get/classnamme_array_key.phpt]
property_get: nmerical_index_array [tests/yasd_debugger/remote_mode/property_get/nmerical_index_array.phpt]
remote_mode: stack_get [tests/yasd_debugger/remote_mode/stack_get.phpt]
remote_mode: stdout [tests/yasd_debugger/remote_mode/stdout.phpt]
remote_mode: stop [tests/yasd_debugger/remote_mode/stop.phpt]
=====================================================================
You may have found a problem in PHP.
This report can be automatically sent to the PHP QA team at
http://qa.php.net/reports and http://news.php.net/php.qa.reports
This gives us a better understanding of PHP's behavior.
If you don't want to send the report immediately you can choose
option "s" to save it. You can then email it to qa-reports@lists.php.net later.
Do you want to send this report now? [Yns]: Y
Please enter your email address.
(Your address will be mangled so that it will not go out on any
mailinglist in plain text): jusys.linas@gmail.com
Posting to http://qa.php.net/buildtest-process.php
Thank you for helping to make PHP better.
make: *** [test] Error 1
- What is your machine environment used (show your
uname -a&php -v&gcc -v) ? uname -a
Darwin Linass-MacBook-Pro.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64
php -v
PHP 8.0.2 (cli) (built: Feb 4 2021 18:57:55) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.2, Copyright (c) Zend Technologies
with Zend OPcache v8.0.2, Copyright (c), by Zend Technologies
gcc - v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 27 (15 by maintainers)
Commits related to this issue
- a few notes in readme regarding using phpstorm (related to https://github.com/swoole/yasd/issues/95) — committed to hq9000/yasd by hq9000 3 years ago
- some notes regarding using yasd with phpstorm in readme (#96) * a few notes in readme regarding using phpstorm (related to https://github.com/swoole/yasd/issues/95) * a note regarding allowing rem... — committed to swoole/yasd by hq9000 3 years ago
I confirm that YASD works with PhpStorm 2020.3 , with breakpoints and everything. If you want your breakpoints to work , you have to set your IDE for remote file mappings.
Tested with phpswoole/swoole:4.6.4-php8.0 inside 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. I am invoking with
-elikephp -e test.phpWhat 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.
also i tried to enable some log by setting yasd.log_level = 3, the setting was applied:
but i dont’ see any yasd-related logs appearing. Maybe i just don’t know where to look for them.
okay.
The php-side setup
/home/me -> /home/mePhpstorm-side setup
phpstorm version: 2020.1 (bit old)
configuration of the “interpreter”:
I have a simple script where i have set breakpoints at each and every line:
run configuration:
debug settings:
Expectation
in 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: