# Cannot debug source code in private path

**URL:** <https://forums.unrealengine.com/t/cannot-debug-source-code-in-private-path/476256>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** Debugging, debug, unreal-engine, question\
**Created:** [December 22, 2020, 3:31am UTC](https://forums.unrealengine.com/t/cannot-debug-source-code-in-private-path/476256 "2020-12-22T03:31:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Torsten.Zhou](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Torsten.Zhou](https://forums.unrealengine.com/u/Torsten.Zhou)\
**Post date:** [December 22, 2020, 3:31am UTC](https://forums.unrealengine.com/t/cannot-debug-source-code-in-private-path/476256/1 "2020-12-22T03:31:05Z")

</div>

I can debug source code when the file locates in a public path, e.g. Runtime/Renderer/Public/SceneView.h

 ![325379-youdu图片20201222112606.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/2/0/32005674448b21387b26184c01da0f7c9f09c315.png)

But, I cannot debug source code when the file locates in a private path, e.g. Runtime/Renderer/Private/SceneRendering.h

 ![325380-youdu图片20201222112631.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/e/5/ce5fada8f2e79d6c629aa00b6260e7fc52d5146e.png)

Does anybody know why and how to solve the problem?

P.S.  
renderer.build.cs has set OptimizeCode as CodeOptimization.Never to enable debug

---

<div class="post-metadata">

**Author:** ![Torsten.Zhou](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Torsten.Zhou](https://forums.unrealengine.com/u/Torsten.Zhou)\
**Post date:** [December 23, 2020, 9:08am UTC](https://forums.unrealengine.com/t/cannot-debug-source-code-in-private-path/476256/2 "2020-12-23T09:08:34Z")

</div>

Solved, pdb can be forcely enabled in target file
