swoole / yasd

Yet Another Swoole Debugger
https://huanghantao.github.io/yasd-wiki/
Apache License 2.0
357 stars 35 forks source link

PHPSTORM 远程调试 path mappings 没有效果 #135

Closed c-v-c-v closed 3 years ago

c-v-c-v commented 3 years ago

Please answer these questions before submitting your issue. Thanks!

  1. What did you do? If possible, provides a simple script and debug step to reproduce the problem. 目录映射没有效果 image
  2. What did you expect to see?
  3. What did you see instead?
  4. What is your machine environment used (show your uname -a & php -v & gcc -v) ?
    bash-5.0# uname -a
    Linux 6fdec32e29b8 4.18.0-147.el8.x86_64 #1 SMP Wed Dec 4 21:51:45 UTC 2019 x86_64 Linux
    bash-5.0# php -v
    PHP 8.0.1 (cli) (built: Apr 12 2021 19:57:37) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v4.0.1, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.1, Copyright (c), by Zend Technologies
    with Yasd v0.3.9-alpha, Our Copyright, by codinghuang
    bash-5.0# gcc -v
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-alpine-linux-musl/9.3.0/lto-wrapper
    Target: x86_64-alpine-linux-musl
    Configured with: /home/buildozer/aports/main/gcc/src/gcc-9.3.0/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --build=x86_64-alpine-linux-musl --host=x86_64-alpine-linux-musl --target=x86_64-alpine-linux-musl --with-pkgversion='Alpine 9.3.0' --enable-checking=release --disable-fixed-point --disable-libstdcxx-pch --disable-multilib --disable-nls --disable-werror --disable-symvers --enable-__cxa_atexit --enable-default-pie --enable-default-ssp --enable-cloog-backend --enable-languages=c,c++,d,objc,fortran,ada --disable-libssp --disable-libmpx --disable-libmudflap --disable-libsanitizer --enable-shared --enable-threads --enable-tls --with-system-zlib --with-linker-hash-style=gnu
    Thread model: posix
    gcc version 9.3.0 (Alpine 9.3.0)
c-v-c-v commented 3 years ago

@huanghantao

c-v-c-v commented 3 years ago

解决了,是在servers里面设置目录映射 服务器上执行 :

export PHP_IDE_CONFIG=serverName=yasd

image

sy-records commented 3 years ago

see https://github.com/swoole/yasd/issues/118#issuecomment-840265857

c-v-c-v commented 3 years ago

see #118 (comment)

okok,已经解决了,thanks