New in Symfony 6.1: Profiler Improvements (part 2)

Better Code Editor Selection

        Contributed by Jérôme Tamarelle
         in #44575
        and #45745.

The Symfony framework.ide configuration option defines the IDE/editor to use to open files when clicking on paths in error pages and other parts of the profiler. Some developers don't like this option because it sets the IDE/editor as a project-wide option, when in reality choosing an IDE or text editor is one of the most personal decisions for developers. That's why in Symfony 6.1 we've improved this feature to allow defining the IDE/editor via an environment variable called SYMFONY_IDE. When the framework.ide option is not set, Symfony tries to read that env var to get the IDE/editor. An additional bonus of this feature is that you must only set the env var once in your system to use the same IDE/editor everywhere. The framework.ide option requires setting it per project.

Xdebug Information Page

        Contributed by Christopher Hertel
         in #44483.

The web debug toolbar displays debug information about the PHP version, whether OPcache and Xdebug are enabled or not, etc. It also provides a link to see the output of the phpinfo() function so you can check the value of PHP configuration options or if some PHP extension is missing. In Symfony 6.1 we're improving this information with a new link to the "Xdebug info page", where you can see all the configuration options used by Xdebug:

Copying HTTP Client Requests as cURL Commands

        Contributed by Jérôme Tanghe
         in #43931.

The Symfony profiler collects all the information about the requests made with the HttpClient component. This helps you debug any issues about them, but sometimes it's easier to re-run the request to try to reproduce the issue. That's why in Symfony 6.1 all HttpClient requests include a cURL button to get the cURL command needed to reproduce the same request:

For example, consider the following simple request:

    $response = $client->request('GET', 'https://api.github.com/repos/symfony/symfony');

The generated cURL command would look like this:

    $ curl \

--compressed \ --request GET \ --url 'https://api.github.com/repos/symfony/symfony' \ --header 'accept: /' \ --header 'user-agent: Symfony HttpClient/Curl' \ --header 'accept-encoding: gzip'

                Sponsor the Symfony project.

https://symfony.com/blog/new-in-symfony-6-1-profiler-improvements-part-2?utm_source=Symfony%20Blog%20Feed&utm_medium=feed

Creado 3y | 12 may 2022, 8:20:06


Inicia sesión para agregar comentarios

Otros mensajes en este grupo.

New in Symfony 7.3: DX Improvements (part 1)

Symfony 7.3 includes many small improvements aimed at making developers' lives easier and more productive. This blog post highlights some of the most useful DX (Developer Experience) features added in

28 may 2025, 9:50:15 | Symfony
New in Symfony 7.3: Validator Improvements

Symfony 7.3 introduces several enhancements to the Validator component, focusing on developer experience, better configurability, and more expressive constraint definitions.

Allow to Disable Translat

27 may 2025, 8:30:20 | Symfony
New in Symfony 7.3: Serializer Improvements

Symfony 7.3 adds a new JsonStreamer component as a high-performance, low-memory JSON encoding and decoding utility. However, the Serializer component still has many valid use cases, even for JSON cont

26 may 2025, 9:20:09 | Symfony
Symfony 7.3.0-RC1 released

Symfony 7.3.0-RC1 has just been released. This is a pre-release version of Symfony 7.3. If you want to test it in your own applications before its final release, run the following commands:

26 may 2025, 0:10:10 | Symfony
A Week of Symfony #960 (May 19–25, 2025)

This week, development activity focused on putting the final touches on Symfony 7.3 in preparation for its stable release next week. In addition, we published a security fix for a potential vulnerabil

25 may 2025, 10:10:12 | Symfony
New in Symfony 7.3: New Bridges and Improved Integrations

Symfony's bridge packages integrate third-party services, such as mailers, notifiers, and translation providers, into Symfony applications. With more than 120 bridges available today, Symfony supports

23 may 2025, 9:30:04 | Symfony
New in Symfony 7.3: Messenger Improvements

Symfony Messenger component keeps evolving to meet the needs of complex, modern applications. In Symfony 7.3, we're introducing several powerful features to it.

Run Process Using the Shell… https://s

22 may 2025, 7:50:11 | Symfony