Basic UE4 C++ debugging tutorial using Visual Studio 2019
Live training session recorded on Discord, using Reuben Ward's Survival Game code as an example, which you can learn about here: https://www.youtube.com/watch?v=V4g6qLJ_5YY This tutorial demonstrates some basic debugging techniques for UE4 C++ code. Some of the information covered is how to understand the call stack and why it is useful, and how to set breakpoints and launch and operate the debugger on your game code, and a few examples of basic troubleshooting. 00:00 - Intro 02:00 - Interpreting the UE4 Crash Reporter 06:00 - Investigating a non-crashing bug 08:56 - Setting breakpoints 10:40 - Launching the debugger 11:31 - Hitting a breakpoint 12:15 - Going off topic to talk about build configurations for a bit 15:15 - Talking about Visual Studio workspace layouts in normal and debug mode 17:50 - Back to investigating, discussing the debug Call Stack panel 19:08 - Discussing the main debugger controls 23:02 - Using the debugger Autos/Locals panels to determine the cause of the bug 25:10 - Continuing execution after stopping at a breakpoint 26:44 - Discussing TSubclassOf and what it does 28:14 - Correcting the bug and testing functionality 30:35 - Setting conditions on breakpoints 35:50 - Reviewing debugger controls, call stack, and stepping through the code 40:58 - Adding a variable to the Watch panel in the debugger 42:20 - Discussing variable scopes in C++ 43:50 - General discussion
Live training session recorded on Discord, using Reuben Ward's Survival Game code as an example, which you can learn about here: https://www.youtube.com/watch?v=V4g6qLJ_5YY This tutorial demonstrates some basic debugging techniques for UE4 C++ code. Some of the information covered is how to understand the call stack and why it is useful, and how to set breakpoints and launch and operate the debugger on your game code, and a few examples of basic troubleshooting. 00:00 - Intro 02:00 - Interpreting the UE4 Crash Reporter 06:00 - Investigating a non-crashing bug 08:56 - Setting breakpoints 10:40 - Launching the debugger 11:31 - Hitting a breakpoint 12:15 - Going off topic to talk about build configurations for a bit 15:15 - Talking about Visual Studio workspace layouts in normal and debug mode 17:50 - Back to investigating, discussing the debug Call Stack panel 19:08 - Discussing the main debugger controls 23:02 - Using the debugger Autos/Locals panels to determine the cause of the bug 25:10 - Continuing execution after stopping at a breakpoint 26:44 - Discussing TSubclassOf and what it does 28:14 - Correcting the bug and testing functionality 30:35 - Setting conditions on breakpoints 35:50 - Reviewing debugger controls, call stack, and stepping through the code 40:58 - Adding a variable to the Watch panel in the debugger 42:20 - Discussing variable scopes in C++ 43:50 - General discussion