# Debugging game in Visual Studio, Cooked content missing

**URL:** <https://forums.unrealengine.com/t/debugging-game-in-visual-studio-cooked-content-missing/375290>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** Debugging, debug, cooked, unreal-engine, question\
**Created:** [November 3, 2016, 2:02pm UTC](https://forums.unrealengine.com/t/debugging-game-in-visual-studio-cooked-content-missing/375290 "2016-11-03T14:02:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nuclearfossil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nuclearfossil](https://forums.unrealengine.com/u/Nuclearfossil)\
**Post date:** [November 3, 2016, 2:02pm UTC](https://forums.unrealengine.com/t/debugging-game-in-visual-studio-cooked-content-missing/375290/1 "2016-11-03T14:02:00Z")

</div>

Been trying to sort out debugging game code (non-editor based) and running into a lot of confusion.

What’s the right build to run in order to debug your game? No Editor.

Running Development:Win64, I get this:

![113647-debugfail01.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/7/9/179279f97ed85133fa1e8a33b98678999f15190c.png)

However, this isn’t where my project lives (it’s E:\Unreal Projects\TestBed) and the missing files are there (in Saved\Cooked\WindowsNoEditor\Engine.

Yeah, I’ve got my own pawn C++ code, but it runs fine from Editor.

I seem to recall someone mentioning that spaces in paths are an issue, but it’s 2017 … that can’t really be the issue, can it?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [November 3, 2016, 3:02pm UTC](https://forums.unrealengine.com/t/debugging-game-in-visual-studio-cooked-content-missing/375290/2 "2016-11-03T15:02:36Z")

</div>

Hello ,

If you’re looking to run your game with the Visual Studio debugger attached without running the editor, the best configuration would be Debug\_Game. Are you using Visual Studio 2015?

As far as spaces go, they should only create problems if you have your project folder (the one above it is fine), project name, or any files in your project with spaces in them. This shouldn’t be the cause of your issue.

Usually when I see this error, it’s from trying to run a launch a packaged game from the editor without building for Development (not Development Editor), so it’s odd that you’re getting this error in this case. Let me know if you continue to get this with Debug\_Game.

---

<div class="post-metadata">

**Author:** ![Nuclearfossil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nuclearfossil](https://forums.unrealengine.com/u/Nuclearfossil)\
**Post date:** [November 3, 2016, 4:42pm UTC](https://forums.unrealengine.com/t/debugging-game-in-visual-studio-cooked-content-missing/375290/3 "2016-11-03T16:42:12Z")

</div>

So yes, this is all VS 2015, community edition.

So, Debug\_Game isn’t particularly performant from what I understand (trying to keep framerate \> 90 for VR), and I want to be able to inject into sections of my code pragmas for including debug information (I’m only interested in debug information on my stuff at this point in time). Are you saying that I won’t be able to do this?

I’ve already built Development, Development editor and Debug\_Game. But I haven’t tried running thought Debug\_Game yet.

---

<div class="post-metadata">

**Author:** ![Nuclearfossil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nuclearfossil](https://forums.unrealengine.com/u/Nuclearfossil)\
**Post date:** [November 4, 2016, 2:01pm UTC](https://forums.unrealengine.com/t/debugging-game-in-visual-studio-cooked-content-missing/375290/4 "2016-11-04T14:01:08Z")

</div>

So, an update

`DebugGame` (not `Debug_Game`) appears to work without the above error.

I _also_ think a bit of the problem may be related to the fact that the active project was set to `Engine->UE4` and not `Games->TestBed` (my current project).

Going to try that out in other build settings to ensure my suspicion was correct.

---

<div class="post-metadata">

**Author:** ![Nuclearfossil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nuclearfossil](https://forums.unrealengine.com/u/Nuclearfossil)\
**Post date:** [November 4, 2016, 2:23pm UTC](https://forums.unrealengine.com/t/debugging-game-in-visual-studio-cooked-content-missing/375290/5 "2016-11-04T14:23:50Z")

</div>

And just confirmed that the issue was me trying launch `Engine->UE4` rather than the proper `Games->TestBed` project.

Very odd as this was from a fresh project regeneration inside UnrealEd - one would think that would for the solution to point to one of the projects in the `Games` folder.

Anyway, I think we can consider this problem solved.
