xdebug breakpoints not working in web requests from BrowserTestBase

Created on 8 February 2017, over 7 years ago
Updated 3 May 2024, about 1 month ago

Problem/Motivation

There are varying reports of xdebug breakpoints not stopping in web requests made from BrowserTestBase tests (eg, code executed via drupalGet, etc).

I am able to reproduce this locally running the latest 8.4.x, with PhpStorm xdebug connections set to 10, and xdebug.remote_autostart=1. Normal debugging works just fine (including stepping into WebTestBase web requests).

This is purportedly due to those tests utilizing PHPUnit's "run in separate process" functionality, which causes the code to be serialized php that is executed, and thus preventing IDEs from having appropriate code mappings.

There is a PR for PHPUnit to write these out to files so IDEs can do the appropriate mappings.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Active

Version

11.0 🔥

Component
PHPUnit  →

Last updated less than a minute ago

Created by

🇺🇸United States jhedstrom Portland, OR

Live updates comments and jobs are added and updated live.
  • Needs manual testing

    The change/bugfix cannot be fully demonstrated by automated testing, and thus requires manual testing in a variety of environments.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024