Coder Social home page Coder Social logo

Comments (3)

shivammathur avatar shivammathur commented on June 11, 2024

php -i | grep Debug says no, as it is built without --enable-debug, but with -g in CFLAGS.

From that build dh_strip removes the debug symbols, so they can be packaged separately, this way it does not need to be built twice. All packaging for Debian is done similarly.

When debug is set to true, it adds those stripped debug symbols to /var/lib/debug/.build-id directory. Tools like objdump and gdb should pick debuginfo from there.

Test workflow: https://github.com/shivammathur/test-setup-php/actions/runs/7875037633/workflow

from setup-php.

TimWolla avatar TimWolla commented on June 11, 2024

I see. Calling it a “Debug Build Setup” without it actually being a Debug Build of PHP certainly was confusing to me.

Do you plan to provide actual Debug Builds with your Action? If not, I would suggest adding a clarification to the README that the “Debug Build Setup” will just install the debug symbols.

Or perhaps it would make sense to always install the debug symbols, GitHub Actions is for testing and debugging after all and having symbols available at all times certainly would not hurt.

from setup-php.

shivammathur avatar shivammathur commented on June 11, 2024

I have tried to improve the documentation for this in 1a5ac4a but switching to debug by default would mean the build size would increase by 3 to 5 times for all, while a very few CI workflows use debug.
Ref: https://github.com/shivammathur/php-ubuntu/releases/tag/builds

from setup-php.

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.