Skip to content

Add --enable-phpdbg-debug option on Windows #14568

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 15, 2024
Merged

Conversation

petk
Copy link
Member

@petk petk commented Jun 14, 2024

This enables outputting additional debugging messages when running phpdbg for developing and troubleshooting phpdbg itself. Option was already added in Autotools and this adds it also to Windows build system.

@Girgias
Copy link
Member

Girgias commented Jun 14, 2024

Output of PHPDBG tests are not identical on Windows and Linux

@petk
Copy link
Member Author

petk commented Jun 14, 2024

Output of PHPDBG tests are not identical on Windows and Linux

Ok, yes, something seems not correct here yet. Checking...

This enables outputting additional debugging messages when running
phpdbg for developing and troubleshooting phpdbg itself. Option was
already added in Autotools and this adds it also to Windows build
system.
@petk petk force-pushed the patch-phpdbg-debug branch from d2abdcd to b41601d Compare June 14, 2024 15:50
@petk
Copy link
Member Author

petk commented Jun 14, 2024

I see, there is everything enabled with --enable-snapshot-build...

Edit: I've marked this as draft for now. Issue is that enabling this option outputs additional strings when running tests. As intended by the PHPDBG_DEBUG but this is not ideal for sure. I was even thinking to remove these options altogether and use PHP_DEBUG/ZEND_DEBUG as done for the entire php-src already. But in this case it would probably be very confusing for people to get additional strings when running the phpdbg. And tests could be adapted with %A tags and all but it wouldn't behave the same. This feature is very basic otherwise and meant really for only development phpdbg only... 🤔

@petk petk marked this pull request as draft June 14, 2024 16:40
petk added 2 commits June 14, 2024 21:50
Because additional info is printed when running tests, the
--enable-phpdbg-debug option is excluded for --enable-snapshot-build if
not provided explicitly.
@petk
Copy link
Member Author

petk commented Jun 14, 2024

Alright, this now works.

@petk petk marked this pull request as ready for review June 14, 2024 20:35
@Girgias
Copy link
Member

Girgias commented Jun 15, 2024

LGTM now :)

@petk petk merged commit 6e825df into php:master Jun 15, 2024
10 of 11 checks passed
@petk petk deleted the patch-phpdbg-debug branch June 15, 2024 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants