# Compiler dont debug some lines

**URL:** <https://forums.unrealengine.com/t/compiler-dont-debug-some-lines/415024>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** unreal-engine, bug-report, UE4, CPP, question\
**Created:** [January 19, 2018, 11:59pm UTC](https://forums.unrealengine.com/t/compiler-dont-debug-some-lines/415024 "2018-01-19T23:59:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kanteh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kanteh](https://forums.unrealengine.com/u/Kanteh)\
**Post date:** [January 19, 2018, 11:59pm UTC](https://forums.unrealengine.com/t/compiler-dont-debug-some-lines/415024/1 "2018-01-19T23:59:33Z")

</div>

Hi,  
i have a wired Problem.  
Visual Studio dont debug every line. Sometimes i just cant read a variable and sometimes i cant debug/step into a function. The code get executed sucessful though.

Any ideas what could be causing this ?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_49a519741](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_49a519741](https://forums.unrealengine.com/u/anonymous_user_49a519741)\
**Post date:** [January 20, 2018, 12:18am UTC](https://forums.unrealengine.com/t/compiler-dont-debug-some-lines/415024/2 "2018-01-20T00:18:21Z")

</div>

To debug your game code you want to build in DebugGame mode. To debug the engine code, it’s just plain Debug mode. Development mode (i.e. “Development Editor”) is the usual, and Shipping mode is for full optimization and some other things.

---

<div class="post-metadata">

**Author:** ![Kanteh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kanteh](https://forums.unrealengine.com/u/Kanteh)\
**Post date:** [January 20, 2018, 12:54am UTC](https://forums.unrealengine.com/t/compiler-dont-debug-some-lines/415024/3 "2018-01-20T00:54:21Z")

</div>

Thank u for the answer! I think it fixed my Problem thank u. Im quite new to unreal, and i didnt thought it would refer my work if i use develop/debug. I thought debug generates extra info in unreal or something.

Must have something to do with the unreal generated classes, cause it always happened when i tried to call a function in blueprints or tried to access propertys.  
Thanks !
