Is there an easy way to call a migration from a controller for debugging purposes I am trying to debug a migration and having issues getting xdebug to work with drush as I described in this issue.  Would there be an easy way for me to call a migration from a controller (I am able to text xdebug from browser)?

For example, I would like to debug this:

drush mi upgrade_d6_field_instance


I was thinking to create a custom module that adds a controller that I can call the migration from the browser. The only option I cant think of is to recreate a lot of the functions from migrate_tools in the controller but I feel like there has to be an easier way.
Actually, the code isn't that hard to recreate from migration_tools. Here is my controller class:

&lt;?php

namespace Drupal\custom_migration\Controller;

use Drupal\Core\Controller\ControllerBase;
use Drupal\migrate\MigrateExecutable;
use Drupal\migrate\MigrateMessage;

class MigrateController extends ControllerBase {

  public function process() {

    $migration = \Drupal::service('plugin.manager.config_entity_migration')-&gt;createInstance('upgrade_d6_field_instance');
    $executable = new MigrateExecutable($migration, new MigrateMessage());
    $executable-&gt;import();


    return ['#markup' =&gt; 'Migrate Debugging'];
  }
}