Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Xdebug on API #849

ArmandArthur started this conversation in General
Sep 23, 2025 · 3 comments · 6 replies
Discussion options

Hello,

Xdebug is installed on php.ini
No troubleshooting with: docker compose exec php php --version

I had installed extension for Vscode and Microsoft Edge, Set up the launch.json in .vscode, it's not working, no trace...

Ideas please?

You must be logged in to vote

Replies: 3 comments 6 replies

Comment options

Hi @ArmandArthur!

It looks like a similar question has already been raised. See #782

You must be logged in to vote
0 replies
Comment options

on vscode?

You must be logged in to vote
1 reply
Comment options

Issue #782 describes an issue with XDebug when FrankenPHP's worker mode is enabled. You're likely experiencing a similar problem.

I also recommend checking out the docs/xdebug.md for more information on configuring XDebug for VS Code.

Comment options

Ok what's this worker mode?

Edit: right; worker mode not work with xdebug, should i need to activate worker mode in prod?

You must be logged in to vote
5 replies
Comment options

Comment options

ok boot time, how enabled for prod and not in dev?

Comment options

This discussion was already at #782. See #782 (comment).

Comment options

Strange, watch is enabled in compose.override.yaml but it's for prod?

inDockerFile

FROM frankenphp_base AS frankenphp_dev
ENV APP_ENV=dev
ENV XDEBUG_MODE=off
ENV FRANKENPHP_WORKER_CONFIG=watch

Which value for prod?

Comment options

watch is a FrankenPHP option for automatically restarting when changes are detected in project files. See https://frankenphp.dev/docs/config/#watching-for-file-changes.
This option is enabled only for the dev environment because file changes are only expected for this environment. In prod, files shouldn't change, and this option is not needed for prod. Therefore, this option is enabled only for dev.

The FRANKENPHP_WORKER_CONFIG environment variable was added to the Dockerfile for the frankenphp_dev target in #765. This PR enabled worker mode for dev. Before this PR, worker mode was enabled only for prod.

You can revert #770 and #765 for your project to restore the previous behavior (so that worker mode only works for production). After revert and rebuilding the image, XDebug should start working. See #782 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /