Giter VIP home page Giter VIP logo

Comments (6)

shafreeck avatar shafreeck commented on August 16, 2024

您好, phptrace 需要安装phpext下的扩展, 安装后需要在php.ini 中启用扩展 phptrace.enabled=1

from phptrace.

gnever avatar gnever commented on August 16, 2024

的确是phptrace.enabled=1的原因 多谢~
不过现在又报:
phptrace 0.1 demo, published by infra webcore team
[24574] 30 Dec 16:45:59.815 # failed to ptrace(PEEKDATA) pid 24482
[24574] 30 Dec 16:46:00.816 # failed to ptrace(PEEKDATA) pid 24482
[24574] 30 Dec 16:46:01.816 # failed to ptrace(PEEKDATA) pid 24482
dump stack failed!

有没有一个文档可以查到错误,我们自己来跟一下?

from phptrace.

shafreeck avatar shafreeck commented on August 16, 2024

@gnever 我们会尽快完善文档, 不过目前还没有地方查看这些错误信息, 当使用-s 选项打印stack时, 只有PHP程序在执行PHP脚本时才会有效, 比如php-fpm, 如果其没有执行PHP脚本来处理请求,此时就没有PHP函数的调用栈, 因此-s 会执行失败。

from phptrace.

ixqbar avatar ixqbar commented on August 16, 2024

那是不是可以在php-fpm没有执行php脚本时,让phptrace先wait

from phptrace.

shafreeck avatar shafreeck commented on August 16, 2024

@Jonnywang phptrace -p <PID> 执行trace时, 默认会一直wait, 只是-s 选项打印当前stack时, 重试几次后就会退出, 因为打印调用栈只是抓取一个快照, 一直wait的方式不太合适。

from phptrace.

gnever avatar gnever commented on August 16, 2024

@shafreeck 多谢了~

from phptrace.

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.