skip to Main Content

Debugging Packaged Builds

In this post I’m going to show you how you can debug packaged builds with visual studio.

The process requires the following steps:

  1. Adding a break point somewhere in your code
  2. Including debug files for packaging
  3. Packaging your project with either Debug or Development Build Configuration
  4. Attaching the visual studio debugger to your game’s process

Since each project is different I’m going to assume you have already placed a breakpoint somewhere in your code. Once you do that, navigate to Project Settings -> Packaging -> Project

and make sure to:

  • Enable either the Debug or Development option in the Build Configuration
  • Include Debug Files
Packaging Settings

Once you complete these steps, package your build somewhere in your PC and run it. While the game is running open up the project’s visual studio solution and on the Debug dropdown menu select the “Attach to Process” option

Attaching the VS debugger in your game #1

Once you do that, in the menu that pops up:

  1. Select your packaged game from the list of processes
  2. Attach the debugger to it
Attaching the VS debugger in your game #2 (click on image to enlarge in a new tab)

Once you complete these steps you have to wait until your code steps into the breakpoint you have added in the 1st step. In my case, I’ve placed a breakpoint somewhere in my game’s instance and I can even watch the contet of the relevant variables for that particular block:

Variable watches from the VS debugger (click on image to enlarge in a new tab)

And that’s the whole process of attaching tthe debugger to your packaged builds! Thanks for reading!

Avatar photo

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back To Top