View Entity Framework Core query plan directly inside Visual Studio, VS Code and JetBrains Rider.
Jump to: Visual Studio · VS Code · JetBrains Rider
With the Entity Framework Core query plan debugger visualizer, you can view the query plan of your queries directly inside Visual Studio. Currently, the visualizer supports SQL Server, PostgreSQL, SQLite, MySQL and Oracle.
Important
The visualizer requires Visual Studio 2022 Version 17.14 (Released on May 13th, 2025) or newer, including Visual Studio 2026 and supports EF Core 7 or newer.
After installing the extension from the marketplace, a new debugger visualizer will be added to Visual Studio. When debugging, hover over your queries and there will be an option to view the query plan (Here we show the actual query plan which means it forces query execution ):
Click on 'Query Plan Visualizer' and the query plan will be displayed for your query.
The query plan includes Actual IO stats, Outline data, Projections, and Predicates.
Install the EFCore Visualizer extension from the Visual Studio Marketplace, or search for "EFCore Visualizer" in VS Code's Extensions view. While you debug with Microsoft's C# extension, hover over a query in Variables or Watch and click the Visualize Query Plan button at the end of its row, or right-click the query and choose Visualize Query Plan. The plan opens in a tab beside the editor, with the same plan pages as in Visual Studio. The tab's title bar has a Refresh button and a Copy SQL button, which copies the query's SQL with its parameters. It requires VS Code 1.90 or newer and supports EF Core 7 or newer.
See the VS Code extension's README for details.
The visualizer is also available for Rider. While you debug, click Visualize Query Plan at the end of a query's row in Variables, Watches or the editor's hover popup. The same command is on the Variables toolbar and in the right-click menu. The plan opens in an editor tab, with the same plan pages as in Visual Studio. Each variable gets its own tab, and visualizing it again shows the new plan when the query changed. It requires Rider 2026.2 or newer and supports EF Core 7 or newer.
See the Rider plugin's README for details.
- If query plan extraction takes more than 5 seconds, you will get Evaluation timed out error
- If your project uses Application Insights, you might get Cannot evaluate expression since the function evaluation requires all threads to run. when viewing query plan. Workaround - disable Application Insights when running your project with a debugger attached.
This extension uses pev2, html-query-plan (built from Rudi Bruchez's fork) and Treeflex to display query plans, and highlight.js to highlight SQL.














