# how can I use Visual Studio to debug a BPFL designed for runtime only?

**URL:** <https://forums.unrealengine.com/t/how-can-i-use-visual-studio-to-debug-a-bpfl-designed-for-runtime-only/1877514>\
**Category:** C++\
**Tags:** unreal-engine, question\
**Created:** [May 28, 2024, 6:40pm UTC](https://forums.unrealengine.com/t/how-can-i-use-visual-studio-to-debug-a-bpfl-designed-for-runtime-only/1877514 "2024-05-28T18:40:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdh25501](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jdh25501](https://forums.unrealengine.com/u/jdh25501)\
**Post date:** [May 28, 2024, 6:40pm UTC](https://forums.unrealengine.com/t/how-can-i-use-visual-studio-to-debug-a-bpfl-designed-for-runtime-only/1877514/1 "2024-05-28T18:40:33Z")

</div>

Hi,

I’m trying to debug a BPFL (from this tutorial: [Example Project: Loading Pak Files At Runtime | Tutorial](https://dev.epicgames.com/community/learning/tutorials/7Bj8/unreal-engine-example-project-loading-pak-files-at-runtime) - because it’s apparently broken if your pak contains Engine assets)

And it has this code snippet:

> //Check to see if running in editor  
> #if WITH\_EDITOR  
> return bIsMounted;  
> #endif

When I try and run via the Visual Studio debugger it launches the editor - which means I’m always hitting that conditional compile.

So, how can I run the game directly from the debugger - not via the editor?

I can’t seem to find any documentation on this. But please accept my apologies and point me at any pre-existing answers/documentation.

Thanks…

---

<div class="post-metadata">

**Author:** ![jdh25501](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jdh25501](https://forums.unrealengine.com/u/jdh25501)\
**Post date:** [May 28, 2024, 8:13pm UTC](https://forums.unrealengine.com/t/how-can-i-use-visual-studio-to-debug-a-bpfl-designed-for-runtime-only/1877514/2 "2024-05-28T20:13:37Z")

</div>

Umm, sorry… I’m an idiot.

Just change the solution configuration to the “non-editor” version…

😊
