Overview Version History Q & A Rating & Review
Magento 2 Plugin Chain Inspector
VS Code extension by Jigar Karangiya .
Shows the execution order of Magento 2 plugins (before, around, after) for a class and public method. Reads di.xml in your workspace and links to plugin PHP and generated interceptors.
Repository: github.com/jigarkkarangiya/magento-plugin-chain-inspector
Install
Marketplace (after publish): search Magento 2 Plugin Chain Inspector
VSIX: code --install-extension magento-plugin-chain-inspector-0.3.2.vsix
From source: clone this repo, then npm install && npm run compile, and use Developer: Install Extension from Location
Open a Magento 2 project root (with app/ and vendor/) in the workspace, then open the Plugin Chain view in the activity bar.
Features
Scans app/etc/di.xml, app/code, and optionally vendor
Areas: global, frontend, adminhtml
Numbered run order; click a row to open source
Sample targets for busy chains (e.g. OrderRepositoryInterface::get)
Inspect method at cursor in PHP (editor context menu)
Around plugins flagged when $proceed() is missing
Commands
Command
Description
Plugin chain: Open sidebar
Open the Plugin Chain view
Plugin chain: Inspect method at cursor
Fill class and method from the open PHP file
Plugin chain: Author website
Open https://jigarkarangiya.com
Plugin chain: Rescan di.xml index
Rebuild the DI index
Development
git clone https://github.com/jigarkkarangiya/magento-plugin-chain-inspector.git
cd magento-plugin-chain-inspector
npm install
npm run compile
Press F5 with this folder as the workspace. In the Extension Development Host, open your Magento project folder to test.
Settings
Setting
Default
Description
magentoPluginChain.scanVendor
true
Include vendor/ when scanning di.xml
magentoPluginChain.generatedPath
generated/code
Path to compiled interceptors
Links
License
MIT — see LICENSE .