# UE-39304 crash when debugging in VS Code

**URL:** <https://forums.unrealengine.com/t/ue-39304-crash-when-debugging-in-vs-code/443494>\
**Category:** Pipeline & Plugins\
**Tags:** debug-trace, unreal-engine, crash, bug-report, Visual-Studio, CPP, question\
**Created:** [February 16, 2019, 11:09am UTC](https://forums.unrealengine.com/t/ue-39304-crash-when-debugging-in-vs-code/443494 "2019-02-16T11:09:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NSPants](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NSPants](https://forums.unrealengine.com/u/NSPants)\
**Post date:** [February 16, 2019, 11:09am UTC](https://forums.unrealengine.com/t/ue-39304-crash-when-debugging-in-vs-code/443494/1 "2019-02-16T11:09:45Z")

</div>

My project compiles and runs fine from Visual Studio, but when I generate the project for VS Code and try to debug it from VS Code, I get that same crash, because `DTTDesc.SampleDesc.Count` is 1 greater than `RTTDesc.SampleDesc.Count`.

The associated issue [Unreal Engine Issues and Bug Tracker (UE-39304)](https://issues.unrealengine.com/issue/UE-39304) may be the result of an unrelated problem, but the crash is the same.
