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

Erstellt 2y | 12.05.2022, 08:20:06


Melden Sie sich an, um einen Kommentar hinzuzufügen

Andere Beiträge in dieser Gruppe

SymfonyOnline June 2024: The big upgrade. All the way up to Symfony 7 and PHP 8.3

SymfonyOnline June 2024 is in less than 2 months: on June 6-7, get ready for the impressive lineup of speakers and topics. Visit here to learn more and don't miss out on this exciting opportuni

25.04.2024, 13:50:38 | Symfony
SymfonyOnline June 2024: Crafting Elegant Symfony Tests

SymfonyOnline June 2024 is in less than 2 months: on June 6-7, get ready for the impressive lineup of speakers and topics. Visit here to learn more and don't miss out on this exciting opportuni

23.04.2024, 09:40:13 | Symfony
SymfonyLive Berlin 2024: Using container's features to manage complexity

SymfonyLive Berlin 2024 start in 2 months: on June 20-21, get ready for the impressive lineup of speakers and topics. Visit here to learn more and don't miss out on this exciting opportunity!

22.04.2024, 13:10:20 | Symfony
A Week of Symfony #903 (15-21 April 2024)

This week, Symfony continued adding compatibility with the upcoming PHP 8.4 version and also focused on tweaking and polishing the new features of the upcoming Symfony 7.1 version. Meanwhile, we publi

21.04.2024, 07:40:03 | Symfony
SymfonyOnline June 2024: How to Test an External API with 0 Mocks?

SymfonyOnline June 2024 is in less than 2 months: on June 6-7, get ready for the impressive lineup of speakers and topics. Visit here to learn more and don't miss out on this exciting opportuni

19.04.2024, 14:40:02 | Symfony
SymfonyLive Berlin 2024 This is a test: One-click Cypress.IO E2E testing in 45 seconds

SymfonyLive Berlin 2024 start in 2 months: on June 20-21, get ready for the impressive lineup of speakers and topics. Visit here to learn more and don't miss out on this exciting opportunity!

19.04.2024, 10:10:10 | Symfony
SymfonyOnline June 2024 - Carry out the best audit for your client

SymfonyOnline June 2024 is in less than 2 months: on June 6-7, get ready for the impressive lineup of speakers and topics. Visit here to learn more and don't miss out on this exciting opportuni

18.04.2024, 15:50:12 | Symfony