Visual Studio 2013 compiler error WHY? wrong code?

I have a problem with debug Plese check out : Whats going on? When I try creating New Codte Third Person in UE4

'UE4Editor.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Cannot find or open the PDB file.
'UE4Editor.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. Cannot find or open the PDB file.


1>------ Build started: Project: MyProject2, Configuration: DebugGame_Editor x64 ------
1> Performing 8 actions (max 2 parallel jobs)
1> [2/8] rc.exe ModuleVersionResource.rc.inl
1> PCH.MyProject2.MyProject2.h.cpp
1>E:\UnrealEngine\Unreal Engine\4.4\Engine\Source\Runtime\Core\Resources\Windows\ModuleVersionResource.rc.inl(3): fatal error RC1015: cannot open include file ‘windows.h’.
1>E:\UnrealEngine\Unreal Engine\4.4\Engine\Source\Runtime\Core\Public\HAL\PlatformIncludes.h(8): fatal error C1083: Cannot open include file: ‘new’: No such file or directory
1> [3/8] rc.exe MyProject2.rc
1> C:\Users\Dawid Wo-------- End Detailed Actions Stats -----------------------------------------------------------
1>ERROR : UBT error : Failed to produce item: C:\Users\Dawid Woźny\Documents\Unreal Projects\MyProject2\Binaries\Win64\UE4Editor-MyProject2-Win64-DebugGame.dll
1> Cumulative action seconds (4 processors): 0,00 building projects, 0,39 compiling, 0,00 creating app bundles, 0,00 generating debug info, 0,00 linking, 0,00 other
1> UBT execution time: 4,47 seconds
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command ““E:\UnrealEngine\Unreal Engine\4.4\Engine\Build\BatchFiles\Build.bat” MyProject2Editor Win64 DebugGame “C:\Users\Dawid Woźny\Documents\Unreal Projects\MyProject2\MyProject2.uproject” -rocket” exited with code -1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I had a very similar issue; the solution would compile but on F5 visual studio would jump to a “Cannot find or open the .PDB File” error page.

I followed the instructions on this related question to fix the issue. i.e. I deleted my ‘Intermediate’ folder (move it to a backup just to be extra safe), regenerate your visual studio project files, run your project without visual studio once and then try debugging it from visual studio again (in either DebugGameEditor mode), it should work this time.