phpmd icon indicating copy to clipboard operation
phpmd copied to clipboard

[3.x] Add "--xdebug" CLI option to enabled Xdebug

Open ravage84 opened this issue 1 year ago • 3 comments

Type: Feature Issue: Resolves None Breaking change: No

Inspired by https://dev.to/serendipityhq/how-to-debug-any-symfony-command-simply-passing-x-214o

This could easily be a feature of composer/xdebug-handler itself, if they would want to.

ravage84 avatar May 15 '24 23:05 ravage84

Codecov Report

Attention: Patch coverage is 5.26316% with 18 lines in your changes missing coverage. Please review.

Project coverage is 91.48%. Comparing base (5444160) to head (afa75e0).

Files Patch % Lines
src/main/php/PHPMD/TextUI/XdebugOptionHandler.php 0.00% 18 Missing :warning:
Additional details and impacted files
@@             Coverage Diff              @@
##                3.x    #1158      +/-   ##
============================================
- Coverage     91.96%   91.48%   -0.49%     
- Complexity     1290     1296       +6     
============================================
  Files           107      108       +1     
  Lines          3398     3417      +19     
============================================
+ Hits           3125     3126       +1     
- Misses          273      291      +18     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar May 15 '24 23:05 codecov[bot]

This could easily be a feature of composer/xdebug-handler itself, if they would want to.

Did you propose the change upstream?

AJenbo avatar May 15 '24 23:05 AJenbo

Did you propose the change upstream?

Not yet

ravage84 avatar May 15 '24 23:05 ravage84