Download

UE4Editor doesnt show up under Linux with an LLDB debugger attached (VS-Code)

Good day,

I have a weird problem I can not figure out for some time now.
I’m running a Linux at home, and I’m trying to make the UE4 (built from source code) work with LLDB debugger in VS code. My problem is that when the debugger is set to LLDB the editor never shows up on the screen. I see it taking up RAM in task manager so as LLDB process, but the window never displays. On the other hand it starts just fine when the debugger is set to GDB. But its kinda slow, and I really want to try LLDB instead. The log get stuck at shader compiling, which is weird cause the shaders were already compiled previously outside of the debugging session.

Here’s my launch task:
[SPOILER] {
“name”: “TestProjectEditor (Debug)”,
“request”: “launch”,
“preLaunchTask”: “TestProjectEditor Linux Debug Build”,
“program”: “/home/username/Documents/UnrealEngine/Engine/Binaries/Linux/UE4Editor-Linux-Debug”,
“args”:
“/home/username/Documents/UnrealEngine/Games/TestProject/TestProject.uproject”
],
“cwd”: “/home/username/Documents/UnrealEngine”,
“MIMode”: “lldb”,
“type”: “cppdbg”
},
[/SPOILER]

The VS output log is provided in the attachments.

Some system info:

[SPOILER]Manjaro Linux
UE4 (4.23)
LLDB (8.0.1)
VSCode (1.36.1)
VSCode C++ extension (0.24.1)[/SPOILER]

I’d greatly appreciate if someone would even just give me a suggestion of what else I could try, because I’m out of ideas at this point.
Thanks.

Fix is to set lldb adapter type to native and for that you need to have lldb installed

sudo dnf install lldb

or if you are on ubuntu

sudo apt install lldb

Bundled unreal engine has issues with IDE’s I use system clang and system lldb always.