# Visual Studio freezes on breakpoint

**URL:** <https://forums.unrealengine.com/t/visual-studio-freezes-on-breakpoint/318291>\
**Category:** Pipeline & Plugins\
**Tags:** freeze, breakpoint, unreal-engine, Visual-Studio, CPP, question\
**Created:** [May 12, 2015, 7:07am UTC](https://forums.unrealengine.com/t/visual-studio-freezes-on-breakpoint/318291 "2015-05-12T07:07:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mercurial\_Forge](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mercurial_forge/32/872818_2.png) [@Mercurial\_Forge](https://forums.unrealengine.com/u/Mercurial_Forge)\
**Post date:** [May 12, 2015, 7:07am UTC](https://forums.unrealengine.com/t/visual-studio-freezes-on-breakpoint/318291/1 "2015-05-12T07:07:31Z")

</div>

# Problem

So for a while now I’ve been having this issues where Visual Studio will randomly freeze / lockup when it hits a breakpoint.

## Details

This locks up both Visual Studio and the UE4Editor.exe; then I have to force shutdown Visual Studio and restart everything. It doesn’t matter which kind of breakpoint or on what kind of code. _It freezes about 70%_ of the time. Even If I know the code executes fine. Sometimes I just want to view a variable!

This issues has been plaguing me for quite a while and I really just want the debugger to work reliably for once!

## Things of note

The project began in 4.0 or 4.1 and has been converted to each new build successfully to 4.7.6 [I don’t think this is the problem]

I’ve tried command line builds [-game -debug -vadebug] and then attaching the debugger with no better results.

I’ve tried both DebugGame and Development Editor builds, with no luck.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8e2766aa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8e2766aa](https://forums.unrealengine.com/u/anonymous_user_8e2766aa)\
**Post date:** [May 13, 2015, 1:42pm UTC](https://forums.unrealengine.com/t/visual-studio-freezes-on-breakpoint/318291/2 "2015-05-13T13:42:10Z")

</div>

Hello, Oliver

Have you tried regenerating project files from .uproject file and rebuilding the project?  
Also, have you fixed compile time warnings during project’s conversion for deprecated keywords/functions?

---

<div class="post-metadata">

**Author:** ![Mercurial\_Forge](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mercurial_forge/32/872818_2.png) [@Mercurial\_Forge](https://forums.unrealengine.com/u/Mercurial_Forge)\
**Post date:** [May 14, 2015, 4:14pm UTC](https://forums.unrealengine.com/t/visual-studio-freezes-on-breakpoint/318291/3 "2015-05-14T16:14:02Z")

</div>

Hi,

I have deleted Binaries, Saved, and Intermediate, regenerated project files from .uproject file and rebuilt the project. That has offered some luck, but it’s short lived it seems. The system usually freezes at a random time later.

I also Have 0 deprecation and warning messages. I fully upgrade all api calls as soon as I see them.

I’ll try again soon and see how long it take for the freeze to occur.

---

<div class="post-metadata">

**Author:** ![Mercurial\_Forge](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mercurial_forge/32/872818_2.png) [@Mercurial\_Forge](https://forums.unrealengine.com/u/Mercurial_Forge)\
**Post date:** [February 20, 2016, 6:13pm UTC](https://forums.unrealengine.com/t/visual-studio-freezes-on-breakpoint/318291/4 "2016-02-20T18:13:26Z")

</div>

Run visual studio as Administrator and it will no longer freeze. I believe it’s trying to access something on the disk it does not have permission to read/write, but this seems to fix it for me. As a not it only happens as the project gets more complex in code base.
