LoginSignup
0
0

More than 1 year has passed since last update.

rectorをxdebugでステップトレース

Posted at

RectorをPHPStormでステップ実行

自作のRectorルールを実際の実行時にステップトレース実行する方法を紹介します。

rector.php

設定ファイルでdisableParallel()でパラレル実行を無効にします。(デフォルト有効)

return static function (RectorConfig $rectorConfig): void {
    $rectorConfig->paths([
        __DIR__ . '/src',
    ]);

    // register a single rule
    $rectorConfig->rule(YourRectorRule::class);
    // パラレル実行を停止
    $rectorConfig->disableParallel();

PHPStormでステップトレース実行

Run > Edit Configurations... で--xdebugオプションを指定します。

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0