Skip to content

Commit 7206131

Browse files
Merge pull request #14018 from MicrosoftDocs/main
Merged by Learn.Build PR Management system
2 parents 8f70ab9 + 35901bb commit 7206131

12 files changed

+161
-13
lines changed

gamedev/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
href: unreal/get-started/vs-tools-unreal-add-class-module-plugin.md
3939
- name: View Unreal Engine Blueprints in Visual Studio
4040
href: unreal/get-started/vs-tools-unreal-view-blueprints.md
41+
- name: Debug Unreal Engine Blueprints in Visual Studio
42+
href: unreal/get-started/vs-tools-unreal-blueprint-debugger.md
4143
- name: View Unreal Engine logging in Visual Studio
4244
href: unreal/get-started/vs-tools-unreal-logging.md
4345
- name: View Unreal Engine macros in Visual Studio
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
---
2+
title: "Debug Unreal Engine Blueprints in Visual Studio"
3+
description: "Learn how to use Visual Studio's Blueprint debugger to debug Unreal Engine Blueprint code alongside C++ code."
4+
ms.date: 06/20/2025
5+
ms.topic: how-to
6+
ms.service: visual-studio
7+
ms.subservice: unreal-engine-tools
8+
author: TylerMSFT
9+
ms.author: TWhitney
10+
manager: Coxford
11+
ai-usage: ai-assisted
12+
13+
#customer intent: As an Unreal Engine developer, I want to debug Blueprint code alongside my c++ code in Visual Studio.
14+
---
15+
16+
# Debug Unreal Engine Blueprints in Visual Studio
17+
18+
Visual Studio improves debugging Unreal Engine projects by showing information about Unreal Engine Blueprints in the call stack and local variables windows. This feature lets you debug Blueprint code alongside your C++ code in a one debugging session. With this functionality, you can easily track interactions between Blueprints and C++ code, making it simpler to identify and fix bugs.
19+
20+
Blueprints are a visual scripting technology available in Unreal Engine for rapid prototyping and development. They can interact with C++ code and in many cases games are originally designed as Blueprints and later converted to C++ to improve performance. If you spend time converting Blueprints to C++, this functionality lets you analyze Blueprints together with C++ code to help with the conversion. This reduces the need to switch between Visual Studio and the Unreal Editor, providing a seamless debugging experience and reducing context-switching.
21+
22+
Visual Studio Blueprint debugger support provides:
23+
24+
- **Integrated call stack**: Blueprint frames appear in the same call stack as C++ frames.
25+
- **Variable inspection**: View Blueprint node pins and their values appear in the local variables window.
26+
- **Unified debugging experience**: Debug Blueprint and C++ code in the same session.
27+
- **Breakpoint support**: Set breakpoints in C++ code called by Blueprints. This is useful when you have multiple Blueprints that can call C++ code, but you aren't sure which ones do and why.
28+
29+
## Prerequisites
30+
31+
- Visual Studio 2022 17.14 or later with the **Game development with C++** workload installed.
32+
- **Visual Studio debugger tools for Unreal Engine Blueprints** component.
33+
- **Visual Studio Tools for Unreal Engine** component.
34+
- Unreal Engine plugin for Visual Studio.
35+
- Unreal Engine installed with debug symbols.
36+
- Visual Studio plugin for Unreal Engine.
37+
38+
## Install prerequisites
39+
40+
Run the Visual Studio Installer to install the required components to debug Unreal Engine Blueprints. For more information about installing Visual Studio Tools for Unreal Engine, see [Get started with Visual Studio Tools for Unreal Engine](vs-tools-unreal-quickstart.md).
41+
42+
- On the **Workloads** pane, make sure the **Game development with C++** workload is installed, along with **Visual Studio debugger tools for Unreal Engine Blueprints** and **Visual Studio Tools for Unreal Engine**:
43+
44+
:::image type="content" source="../media/vs-installer-unreal-engine-workload.png" alt-text="Screenshot of the Visual Studio installer. The Game development with C++ workload is selected. In the installation details pane, Visual Studio Tools for Unreal Engine, Visual Studio debugger tools for Unreal Engine Blueprints, HSL Tools, And Windows 11 SDK are selected." lightbox="../media/vs-installer-unreal-engine-workload.png":::
45+
46+
### Install Unreal Engine debug symbols
47+
48+
Install debug symbols for each version of Unreal Engine you debug with Visual Studio:
49+
50+
1. Open the **Epic Games Launcher**.
51+
1. Select the **Unreal Engine** pane and then the **Library** pane.
52+
1. Select the dropdown menu for your engine version, then choose **Options**:
53+
54+
:::image type="content" source="../media/unreal-engine-options.png" alt-text="Screenshot of the Epic Games installer. The Launch dropdown is selected and Options is highlighted.":::
55+
56+
1. In the options dialog, select **Editor symbols for debugging**:
57+
58+
:::image type="content" source="../media/unreal-engine-editor-symbols-for-debugging.png" alt-text="Screenshot of the Epic Games installation options. Editor symbols for debugging is selected.":::
59+
60+
1. Select **Apply**, then wait for the download to finish.
61+
62+
### Install Unreal Engine plugin for Visual Studio
63+
64+
The Unreal Engine plugin for Visual Studio installs into Unreal Engine. It's automatically activated when you open an Unreal Engine project in Visual Studio. This plugin provides the necessary integration between Unreal Engine and Visual Studio to view Blueprint node pin values in the Visual Studio debugger local variables window.
65+
66+
For manual installation instructions, see [vc-ue-extensions](https://github.com/microsoft/vc-ue-extensions).
67+
68+
If you have an Unreal Engine project that you can open in Visual Studio, another way to install the plugin is in Visual Studio via the Unreal Engine Configuration window:
69+
- With an Unreal Engine project opened in Visual Studio, choose **Project** > **Configure Tools for Unreal Engine** to open the **Unreal Engine Integration Configuration** window.
70+
- In the **Visual Studio Integration Tool Status** section, select **Install to Project** or **Install to Engine** as meets your needs.
71+
72+
If you don't see the install buttons, choose the refresh icon to refresh the status. If you need to install the plugin manually, select the **Manual installation instructions** link to open the [vc-ue-extensions](https://github.com/microsoft/vc-ue-extensions/blob/main/README.md) page, which contains installation instructions.
73+
74+
:::image type="content" source="../media/vs-unreal-engine-configuration-page-plugin.png" alt-text="Screenshot of the Unreal Engine Integration Configuration window. In the Visual Studio Integration Tool Status section, the refresh, Install to Project, and Install to Engine buttons are highlighted. The Manual installation instructions link is also highlighted.":::
75+
76+
## Set up a test project
77+
78+
To test the Blueprint debugger functionality, create a project that contains Blueprints and C++ code. The Unreal Engine **First Person** template works well.
79+
80+
1. Open the Unreal Engine Editor and create a new **First Person** project.
81+
1. Ensure that **C++** is selected:
82+
83+
:::image type="content" source="../media/unreal-engine-new-project-first-person.png" alt-text="Screenshot of the Unreal Engine editor new project dialog. First Person is selected, and the BlueEpic Games installation options. Editor symbols for debugging is selected.":::
84+
85+
1. After creating the project, close all Unreal Editor instances.
86+
1. In Visual Studio, open the generated Visual Studio solution file (*.sln*).
87+
88+
### Install Visual Studio plugin for Unreal Engine
89+
90+
To support viewing node pin variables for Blueprints in the Visual Studio debugger, you also need to install the Visual Studio plugin for Unreal Engine. The plugin can be installed in either the Engine or Game project sources. It's automatically activated when an Unreal Engine project is opened in Visual Studio. For installation instructions, see [vc-ue-extensions](https://github.com/microsoft/vc-ue-extensions).
91+
92+
## Debug Blueprints
93+
94+
Follow these steps to set a breakpoint, inspect a Blueprint function, and view its node pin values:
95+
96+
1. In Visual Studio, locate the `AttachWeapon` method in the weapon component class. For example, if you named your project `FirstPerson`, the function would be in the file `FirstPersonWeaponComponent.cpp`.
97+
1. Add a breakpoint at the start of the `AttachWeapon` method. This method is called when the player picks up a weapon in the game:
98+
99+
:::image type="content" source="../media/vs-unreal-engine-attach-weapon-breakpoint.png" alt-text="Screenshot of the AttachWeapon function in Visual Studio. A breakpoint is on the first line of the function." lightbox="../media/vs-unreal-engine-attach-weapon-breakpoint.png":::
100+
101+
1. In the Visual Studio **Solution Configuration** dropdown, select **Development Editor**:
102+
103+
:::image type="content" source="../media/vs-unreal-engine-select-configuration.png" alt-text="Screenshot of the Visual Studio solution configuration dropdown. Development Editor is selected.":::
104+
105+
1. In Visual Studio, compile and run the project to open the Unreal Editor.
106+
1. In the Unreal Editor, select the green **Play** button to start the game.
107+
1. In the running game, press the <kbd>W</kbd> key to move forward until you collide with the weapon and trigger the breakpoint.
108+
1. When the breakpoint is hit, examine the **Call stack** window. Blueprint stack frames appear among your C++ stack frames:
109+
110+
:::image type="content" source="../media/vs-unreal-engine-blueprint-call-stack.png" alt-text="Screenshot of the call stack window in Visual Studio. The breakpoint in AttachWeapon is at the top of the call stack. Two Blueprint entries are highlighted in the call stack for BP_PickUp_Rifle::ExecuteUbergraph_BP_PickUp_Rifle and BP_PickUp_Rifle::BndEvt___BP_PickUp_Rifle_TP_PickUp_K2Node_ComponentBoundEvent_1_OnPickUp_DelegateSignature." lightbox="../media/vs-unreal-engine-blueprint-call-stack.png":::
111+
112+
1. Double-click the first Blueprint frame in the call stack.
113+
1. Open the **Locals** window to view the variables associated with the Blueprint node. You can see the values of the Blueprint node pins:
114+
115+
:::image type="content" source="../media/vs-unreal-engine-blueprint-locals-node-pins.png" alt-text="Screenshot of the locals window in Visual Studio. Blueprint information > Node Pins > Available pins is expanded to show the values of the Blueprint such as the EntryPoint, PickUpCharacter, HasRifle, and more." lightbox="../media/vs-unreal-engine-blueprint-locals-node-pins.png":::
116+
117+
## Summary
118+
119+
The Visual Studio Blueprint debugger provides a seamless debugging experience that bridges the gap between C++ and Blueprint code in Unreal Engine projects. This integrated approach allows you to:
120+
121+
- Track execution flow from C++ to Blueprints and back.
122+
- Inspect Blueprint variables, node pin values, and C++ variables.
123+
- Step through Blueprint execution frames in the same debugging session as C++ code.
124+
125+
This unified debugging experience helps resolve issues efficiently across both coding paradigms, eliminating the need to switch between different debugging tools.
126+
127+
## Related articles
128+
129+
- [Visual Studio Tools for Unreal Engine overview](vs-tools-unreal-overview.md)
130+
- [Get started with Visual Studio Tools for Unreal Engine](vs-tools-unreal-quickstart.md)
131+
- [View Blueprints in Visual Studio](vs-tools-unreal-view-blueprints.md)

gamedev/unreal/get-started/vs-tools-unreal-install.md

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Install Visual Studio Tools for Unreal Engine"
33
description: "Learn how to connect Unreal Engine and Visual Studio. Visual Studio Tools for Unreal Engine offers support for writing and debugging C++ Unreal Engine games."
4-
ms.date: 05/27/2025
4+
ms.date: 06/18/2025
55
ms.service: visual-studio
66
ms.subservice: unreal-engine-tools
77
ms.topic: get-started
@@ -12,14 +12,14 @@ manager: Coxford
1212

1313
# Install Visual Studio Tools for Unreal Engine
1414

15-
This article helps you install Visual Studio Tools for Unreal Engine (UE). These tools allow you to do the following from within Visual Studio:
15+
This article helps you install tools that allow you to do the following from within Visual Studio:
1616

17-
- Add UE classes
1817
- View UE logging
1918
- View and expand UE macros
20-
- View and find references to UE Blueprints<sup>*</sup>
21-
22-
<sup>*</sup>As of Visual Studio 2022 version 17.7, you no longer need the Unreal Engine Visual Studio Integration Tool plugin to view UE Blueprints in Visual Studio.
19+
- Add UE classes, modules, and plugins
20+
- Discover, run, manage, and debug Unreal Engine tests
21+
- Debug C++ code called by Unreal Engine Blueprints and see Blueprint information in the Visual Studio debugger
22+
- View and find references to UE Blueprints
2323

2424
## Prerequisites
2525

@@ -30,13 +30,16 @@ Install the following before you install Visual Studio Tools for Unreal Engine:
3030

3131
## Installation
3232

33-
This article covers installing tools to enhance writing and debugging Unreal Engine code in Visual Studio:
33+
This article covers installing tools to enhance writing and debugging Unreal Engine (UE) code in Visual Studio. Here's an overview of the tools:
3434

35-
- **Visual Studio Tools for Unreal Engine**: Add Unreal Engine (UE) classes, modules, view UE logging, see UE macro expansions, find blueprint references, and so on in Visual Studio.
36-
- **Unreal Engine Test Adapter**: Discover, run, manage, and debug your Unreal Engine tests from within Visual Studio.
37-
- **Visual Studio debugger tools for Unreal Engine Blueprints**: See information about Unreal Engine Blueprints while debugging.
35+
| Tool | Installs into | Functionality |
36+
|--|--|--|
37+
| Visual Studio Tools for Unreal Engine | Visual Studio | Add UE classes, modules, view UE logging, see UE macro expansions, find blueprint references, open UE `.uprojects` directly, and so on, from within Visual Studio. *As of Visual Studio 2022 version 17.7, you no longer need to also have the Unreal Engine Visual Studio Integration Tool plugin to view UE Blueprints in Visual Studio.* |
38+
| Visual Studio debugger tools for Unreal Engine Blueprints | Visual Studio | Supports debugging C++ code and Blueprints. Requires the UE plugin for Visual Studio to show Blueprint node pin values in the debugger. |
39+
| Unreal Engine Test Adapter | Visual Studio | Discover, run, manage, and debug your Unreal Engine tests from within Visual Studio. Requires the UE plugin for Visual Studio. |
40+
| Unreal Engine plugin for Visual Studio | Unreal Engine | Provides the integration between Unreal Engine and Visual Studio to run UE tests in Visual Studio and view Blueprint node pin values in the Visual Studio Local Variables window. |
3841

39-
Follow these steps to install the tools:
42+
Follow these steps to add the tools to Visual Studio:
4043

4144
1. In the Windows search box, type "Visual Studio Installer".
4245
1. Look for the installer under the Apps results and double-click it.
@@ -46,13 +49,25 @@ Follow these steps to install the tools:
4649
- **Visual Studio Tools for Unreal Engine**
4750
- **Visual Studio debugger tools for Unreal Engine Blueprints**
4851
- **Unreal Engine Test Adapter**
49-
- If you work with High-Level Shader Language (HLSL) files, ensure that **HLSL Tools** is also selected.
52+
- If you work with High-Level Shader Language (HLSL) files, select **HLSL Tools**.
5053
1. Select the **Individual components** tab at the top of the dialog.
5154
1. Under **Installation details** on the right, expand **Game development with C++**.
5255
1. Ensure that under **Optional** that **Windows 10 SDK 10.0.18362.0**, or higher, is selected.
5356
1. Select **Modify** to complete the installation.
5457

55-
:::image type="content" source="../media/unreal-workload.png" alt-text="Screenshot of the Visual Studio installer. The Game development with C++ workload is selected. In the installation details pane, Visual Studio Tools for Unreal Engine, Visual Studio debugger tools for Unreal Engine Blueprints, HSL Tools, And Windows 11 SDK are selected." lightbox="../media/unreal-workload.png":::
58+
:::image type="content" source="../media/vs-installer-unreal-engine-workload.png" alt-text="Screenshot of the Visual Studio installer. The Game development with C++ workload is selected. In the installation details pane, Visual Studio Tools for Unreal Engine, Visual Studio debugger tools for Unreal Engine Blueprints, HSL Tools, And Windows 11 SDK are selected." lightbox="../media/vs-installer-unreal-engine-workload.png":::
59+
60+
To add the Unreal Engine plugin for Visual Studio to UE, follow these steps:
61+
62+
- For manual installation instructions, see [vc-ue-extensions](https://github.com/microsoft/vc-ue-extensions).
63+
- If you have an Unreal Engine project that you can open in Visual Studio, another way to install the plugin is in Visual Studio via the Unreal Engine Configuration window.
64+
- With an Unreal Engine project opened in Visual Studio, choose **Project** > **Configure Tools for Unreal Engine** to open the **Unreal Engine Integration Configuration** window.
65+
- In the **Visual Studio Integration Tool Status** section, select **Install to Project** or **Install to Engine** as meets your needs.
66+
67+
If you don't see the install buttons, choose the refresh icon in the top right corner of the window to refresh the status.
68+
The **Manual installation instructions** link opens the [vc-ue-extensions](https://github.com/microsoft/vc-ue-extensions/blob/main/README.md) page, if you need to install the plugin manually.
69+
70+
:::image type="content" source="../media/vs-unreal-engine-configuration-page-plugin.png" alt-text="Screenshot of the Unreal Engine Integration Configuration window. In the Visual Studio Integration Tool Status section, the refresh, Install to Project, Install to Engine buttons are highlighted. The Manual installation instructions link is also highlighted.":::
5671

5772
## Check for updates
5873

38.5 KB
Loading
527 KB
Loading
71.9 KB
Loading
88.3 KB
Loading
253 KB
Loading
143 KB
Loading

0 commit comments

Comments
 (0)