1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-07-27 19:50:21 +02:00
Commit Graph

556 Commits

Author SHA1 Message Date
Barry vd. Heuvel
8f99b6607e Backport https://github.com/barryvdh/laravel-debugbar/pull/1510 2024-02-13 19:55:07 +01:00
Barry vd. Heuvel
a1a30fc11c Revert "Make PDOCollector easy to extend (#582)" (#594)
This reverts commit 958ac08897.
2024-02-13 19:37:34 +01:00
Fred
91f88d5e24 Fix file not exists by setting line default 1 on editor links (#592)
* Set line default 1 on editor links

* Update HasXdebugLinks.php

* Update HasXdebugLinks.php

---------

Co-authored-by: Barry vd. Heuvel <barryvdh@gmail.com>
2024-02-13 16:58:36 +01:00
Barry vd. Heuvel
72fea42726 Tweak setDuration to avoid bc break 2024-02-12 11:29:57 +01:00
Andrew Brown
dfde7d069b allow customization of the memory precision (#530)
currently there is no way to see the raw "peak_usage" bytes in the output. I'd love to have that number available somewhere, but I couldn't figure out how to do that.

this change is the next best thing, as it allows us to override the default precision of "0", so we can get a little more granularity into the memory usage.
2024-02-11 08:54:35 +01:00
Barry vd. Heuvel
80ad07447f Use xdebug links for messages, move to trait (#591)
* Use xdebug links for messages, move to trait

* Tweak view templates
2024-02-10 21:02:28 +01:00
Filippov Alexander
d6566027f1 Added catch to promise for window.fetch wrapper to avoid "Uncaught (in promise) DOMException: The user aborted a request." errors. (#585)
Co-authored-by: Filippov Alexander <swayalex.work@gmail.com>
2024-02-10 11:03:45 +01:00
angeljqv
87f04a2762 normalize file paths on exceptions traces (#566)
* normalize file paths on exceptions traces

* avoid trace string when there is trace html

* normalize file path on message `cannot open the file`

* fix
2024-02-10 11:03:26 +01:00
Yiannis Siantos
429b6f7edc Add names to inputs (#584)
Co-authored-by: Yiannis Siantos <yiannis.siantos@porism.com>
2024-02-10 11:02:07 +01:00
parallels999
958ac08897 Make PDOCollector easy to extend (#582) 2024-02-10 11:01:40 +01:00
erikn69
912691590f Upgrade PDOCollector and queries widget (#581) 2024-02-10 11:00:41 +01:00
erikn69
ff2b6d6346 fix open_basedir restriction error (#590) 2024-02-10 11:00:09 +01:00
erikn69
d1e849c7e2 Refactor DataCollector html dumper (#578)
Co-authored-by: Barry vd. Heuvel <barryvdh@gmail.com>
2024-02-10 10:59:38 +01:00
erikn69
7675af2712 Show file and line on messages (#576) 2024-02-10 10:57:15 +01:00
erikn69
c13bd51cdb fix formatDuration NaNμs on timeline widget (#569) 2024-02-10 10:56:34 +01:00
erikn69
cb11a0120b Update interpolate on MessagesCollector (#572) 2024-02-10 10:55:11 +01:00
kriss
bfa8941060 Fix sort (#527) 2024-02-10 10:54:03 +01:00
erikn69
3ade312b58 preload formatter, avoids unexpected jumps on timeline (#568) 2024-02-10 10:53:17 +01:00
erikn69
bd42d88cd8 fix highlighted-line emphasis on codeblock (#565) 2024-02-10 10:52:44 +01:00
erikn69
5c355755f5 fix editor ajax template links (#570) 2024-02-10 10:49:57 +01:00
erikn69
34462a1ee9 Create ObjectCountCollector for count class/objects (#571)
* Create ObjectCountCollector for count class/objects

* Added ObjectCountCollector demo
2024-02-10 10:46:40 +01:00
erikn69
03dd40a182 Fix PHP 8.2 deprecations (#579) 2023-10-12 10:10:52 +02:00
erikn69
376ff32ee5 fix XSS in timeline (#567) 2023-09-22 13:01:00 +02:00
parallels999
29de66d4ef HtmlVariableList support html on keys (#539) 2023-09-19 21:52:29 +02:00
parallels999
27c3cc05ed Add custom trace formatter helper (#556)
* Add custom trace formatter helper

* Fix

* Add string trace helper on ExceptionsCollector
2023-09-19 21:51:44 +02:00
erikn69
1d87377810 (fix) set memory baseline on MemoryCollector (#559)
* set memory baseline on MemoryCollector

* Rename method

---------

Co-authored-by: Barry vd. Heuvel <barryvdh@gmail.com>
2023-09-19 21:48:23 +02:00
Yannik Sembritzki
ab33d08b02 Get rid of inline styles in widgets.js resulting in csp errors (#564) 2023-09-19 17:37:25 +02:00
erikn69
aafb756575 (feat) memory measure option (#558) 2023-09-19 17:10:23 +02:00
angeljqv
47abaeaa6d add addXdebugReplacements option (#552) 2023-09-19 17:04:57 +02:00
erikn69
ec7d1ae890 Remove xdebug replacements on previews (#542) 2023-09-19 17:03:05 +02:00
erikn69
1b1419202f Early return when no file string (#549) 2023-09-19 17:02:06 +02:00
Yannik Sembritzki
61d4cad24b Fix content security policy failure due to <script> tags without nonce generated by HtmlDumper (#563) 2023-09-19 16:04:51 +02:00
erikn69
1bee671914 (fix) Stop event propagation on editor link click (#550) 2023-09-09 01:01:51 +02:00
erikn69
8f6045d465 Add SymfonyMailCollector (#554)
* Add SymfonyMailCollector

* add examples for SymfonyMailCollector
2023-09-09 00:00:50 +02:00
erikn69
8ed07eb4f0 Support editors when php.ini not available (#543) 2023-08-18 19:41:05 +02:00
erikn69
48c36d158b Fix multiple replacement on the same path (#541) 2023-08-18 19:40:10 +02:00
erikn69
bd269abe69 Fix link highlight on hover (#545) 2023-08-18 19:37:34 +02:00
erikn69
847216e605 bump jquery to v3.7.1 (#548) 2023-08-18 19:37:15 +02:00
Stefan Schramm
dff80cdb1c Fix PHP 8.2 deprecations (#531)
* Fix deprecation: Use of "parent" in callables is deprecated

* Fix deprecations in tests

Creation of dynamic properties is deprecated since php 8.2
2023-08-18 19:36:53 +02:00
erikn69
4a2075b7ce bump highlitght.js to v11.8.0 (#547) 2023-08-18 19:36:21 +02:00
Razvan Aurariu
293d02c78f Fix when using RedisCluster (#533) 2023-04-30 07:43:14 +02:00
kstephensop
ea5bfc41e5 Add initial values to traceable PDO array_reduce() (#523)
If the PDOTraceableDataCollector is enabled and no database calls
happen to be made in a request, PHP 8.1 emits a fatal error, e.g.,

```
<b>Fatal error</b>: Uncaught TypeError:
DebugBar\DataCollector\PDO\TraceablePDO::getAccumulatedStatementsDuration():
Return value must be of type float, null returned in
vendor/maximebf/debugbar/src/DebugBar/DataCollector/PDO/TraceablePDO.php:251
```

The same error occurs in getMemoryUsage() and getPeakMemoryUsage().

Adding an initial value of 0 to `array_reduce()` corrects the problem.

Corrects bug #522.
2023-02-06 16:35:37 +01:00
Joyce Babu
17dcf3f6ed fix: preparedId is nullable (#516) 2023-02-04 16:27:00 +01:00
Danilo Pinotti
cd5e33f3cd Fix event listener when url is object (#519) 2023-02-04 16:26:33 +01:00
Feras El-Sharif
297ed7498a [Feat]: Resource: widgets: templates-files:handel editor link for view list (#513) 2022-10-31 14:34:01 +01:00
Erős Ákos
0bb86588c1 fix: Fix FileStorage::find function (#510)
* fix: Fix FileStorage::find function

Fix FileStorage::find function usort callback function to return int instead of bool, because after PHP8 bool return value for the callback function is not supported.

* fix: Fix FileStorage::find function

Fix FileStorage::find function usort callback function to return int instead of bool, because after PHP8 bool return value for the callback function is not supported.
2022-10-31 14:32:38 +01:00
Didier Raboud
2be80e7b3a Always provide htmlentities with a string, for PHP8.1 deprecation purposes (#503) 2022-10-31 14:32:22 +01:00
Bruce Wells
1386fe5c4f Php8 1 fixes (#497)
* PHP 8.1 warning fixes

Added #[\ReturnTypeWillChange] or appropriate return values
Typed parameters where appropriate

* Fixing unit tests to run without warnings

* Update to more reasonable versions of PHP and PHPUnit (was missing PHPUnit 8)

* mb_check_encoding param 1 can not be null

* Fix SeekingData class for 8.1

* Update tests to not polute the temp directory

* Revert PHP contrant

* Tabs to spaces

* Use Symfony\Component\VarDumper\Cloner\Data\SeekingData instead of local backported version

Avoids Fatal error: Declaration of DebugBar\DataFormatter\VarDumper\SeekingData::seek($key) must be compatible with Symfony\Component\VarDumper\Cloner\Data::seek(string|int $key): ?static

Co-authored-by: Barry vd. Heuvel <barryvdh@gmail.com>
2022-10-31 14:31:43 +01:00
Tadhg Boyle
fd43dfb084 Fix random instances of SQL queries having params repeated (#505)
* Fix random instances of SQL queries having params repeated

* Add test
2022-10-31 14:26:03 +01:00
Jesper Noordsij
4458e2b164 Add properties to prevent dynamic creation in DataFormatter class (#507) 2022-10-31 14:25:07 +01:00