Open zobo opened 1 year ago
Merging #917 (1773ad8) into main (4df70ce) will increase coverage by
0.27%
. The diff coverage is91.30%
.
@@ Coverage Diff @@
## main #917 +/- ##
==========================================
+ Coverage 67.00% 67.28% +0.27%
==========================================
Files 14 14
Lines 1982 2005 +23
Branches 389 395 +6
==========================================
+ Hits 1328 1349 +21
- Misses 654 656 +2
Impacted Files | Coverage Δ | |
---|---|---|
src/xdebugConnection.ts | 82.03% <86.66%> (+0.17%) |
:arrow_up: |
src/phpDebug.ts | 62.93% <100.00%> (+0.41%) |
:arrow_up: |
Using eval here causes issues, for example, when accessing private properties. Also it does not have support for stack depth. https://bugs.xdebug.org/view.php?id=1342 A correct implementation would be to implement var_export in JS and fetch data via property_get/property_value
I'd love to see this implemented. 👀
When the IDE requests evaluation with clipboard context use var_export to format the response