Unreal Engine Debuging in Visual Studio Code

I am using Visual Studio Code and trying to debug. “Launch MyProject1 (DebugGame)” leads to an error.

Part of the log messages:
[2022.08.24-14.04.19:088][ 0]LogD3D12RHI: Adapter Name: NVIDIA GeForce RTX 2060
[2022.08.24-14.04.19:088][ 0]LogD3D12RHI: Driver Version: 516.94 (internal:31.0.15.1694, unified:516.94)
[2022.08.24-14.04.19:088][ 0]LogD3D12RHI: Driver Date: 7-21-2022
[2022.08.24-14.04.19:088][ 0]LogRHI: Texture pool is 3283 MB (70% of 4690 MB)
[2022.08.24-14.04.19:088][ 0]LogD3D12RHI: Async texture creation enabled
[2022.08.24-14.04.19:088][ 0]LogD3D12RHI: RHI has support for 64 bit atomics
[2022.08.24-14.04.19:105][ 0]LogRHI: GeForceNow SDK initialized: 0
[2022.08.24-14.04.19:111][ 0]LogRendererCore: Ray tracing is disabled. Reason: r.RayTracing=0.
[2022.08.24-14.04.19:111][ 0]LogShaderLibrary: Display: Running without a pakfile and did not find a monolithic library ‘Global’ - attempting disk search for its chunks
[2022.08.24-14.04.19:111][ 0]LogShaderLibrary: Display: … not found
[2022.08.24-14.04.19:156][ 0]LogShaderLibrary: Error: Failed to initialize ShaderCodeLibrary required by the project because part of the Global shader library is missing from …/…/…/…/…/…/…/Program Files/Epic Games/UE_5.0/…/…/…/Users/walde/Documents/Unreal Projects/MyProject2/Content/.
Loaded ‘C:\Windows\System32\TextShaping.dll’.
[2022.08.24-14.04.25:211][ 0]LogWindows: FPlatformMisc::RequestExit(1)
[2022.08.24-14.04.25:211][ 0]LogWindows: FPlatformMisc::RequestExitWithStatus(1, 0)
[2022.08.24-14.04.25:211][ 0]LogCore: Engine exit requested (reason: Win RequestExit)

This error happens on Linux and Windows.