Giter Club home page Giter Club logo

Comments (16)

huanghantao avatar huanghantao commented on May 23, 2024

FPM的项目能使用yasd调试吗?

理论上是可用的

from yasd.

ChanJuiHuang avatar ChanJuiHuang commented on May 23, 2024

我搭配vscode使用,除錯fpm項目似乎偵測不到斷點。如果我先用xdebug除錯,停用xdebug,再啟用yasd除錯才找的到斷點。重新啟動fpm之後yasd就找不到斷點。
最後還是切回xdebug除錯 XD

from yasd.

huanghantao avatar huanghantao commented on May 23, 2024

我搭配vscode使用,除錯fpm項目似乎偵測不到斷點。如果我先用xdebug除錯,停用xdebug,再啟用yasd除錯才找的到斷點。重新啟動fpm之後yasd就找不到斷點。
最後還是切回xdebug除錯 XD

我们会在v0.3.0版本对FPM进行兼容。

from yasd.

huanghantao avatar huanghantao commented on May 23, 2024

@jobinli 你好,你可以尝试一下support-fpm分支,看看FPM下是否可以调试。

from yasd.

jobinli avatar jobinli commented on May 23, 2024

@jobinli 你好,你可以尝试一下support-fpm分支,看看FPM下是否可以调试。

你好,测试了下,没响应断点。

image

xdebug 下开启了 xdebug.start_with_request 能正常响应。是否缺少类似的配置或者需要配置个 xdebug_session 之类的才能触发?
image

from yasd.

huanghantao avatar huanghantao commented on May 23, 2024

你试一试php -S启动服务呢?

from yasd.

jobinli avatar jobinli commented on May 23, 2024

php -S 127.0.0.1:9000 test.php ,启动,也是不响应。
php -e -S 127.0.0.1:9000 test.php,启动,请求时候报错

PHP 7.2.34-8+ubuntu18.04.1+deb.sury.org+1 Development Server started at Fri Dec 25 18:15:07 2020
Listening on http://127.0.0.1:9090
Document root is /var/www/html/test
Press Ctrl-C to quit.
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_M_construct null not valid
[1]    11465 abort (core dumped)  php -e -S 127.0.0.1:9090 test.php

from yasd.

huanghantao avatar huanghantao commented on May 23, 2024

这样试试:

php -e -S 127.0.0.1:9501 -t .

from yasd.

jobinli avatar jobinli commented on May 23, 2024

这样试试:

php -e -S 127.0.0.1:9501 -t .

这样运行可以。
image

from yasd.

huanghantao avatar huanghantao commented on May 23, 2024

好吧,我修修bug

from yasd.

huanghantao avatar huanghantao commented on May 23, 2024

@jobinli 你好,php -S 127.0.0.1:9000 test.php的方式应该是可以了,你再试试?

from yasd.

huanghantao avatar huanghantao commented on May 23, 2024

试试support-fpm分支最新的代码?应该是可以在FPM下调试了。

from yasd.

jobinli avatar jobinli commented on May 23, 2024

你好,php -S 127.0.0.1:9090 test.php 方式成功。经过nginx代理后 fpm 下还不响应断点。打印出的脚本路径也是没问题对应的了。

image

from yasd.

jobinli avatar jobinli commented on May 23, 2024

你好,tcpdump 在nginx代理形式下没有包抓到。 php -S 形式下能抓到。感觉似乎没触发到 yasd

from yasd.

huanghantao avatar huanghantao commented on May 23, 2024

你再更新下support-fpm分支试试

from yasd.

huanghantao avatar huanghantao commented on May 23, 2024

已解决

from yasd.

Related Issues (20)

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.