Write some code, hit some breakpoints! This is a walkthrough for setting up a development environment for debugging the loginserver, world, and zone binaries in VS Code by attaching to the remote container and launching the binaries with LLDB.
Here is the example launch.json. Entries could be added for world and loginserver as well by replacing /zone with the respective binary.
Note I am using `make init-dev-build` from the server container and using ninja/clang which may provide different results for debugging than running traditional `make init` and compiling with gcc.
{
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "north qeynos",
"program": "~/server/bin/zone",
"cwd": "${workspaceFolder}/server",
"args": [
"qeynos2"
]
},
]
}
More info on Docker in VS Code and troubleshooting: code.visualstu...
CodeLLDB Extension: marketplace.vi...
LLDB Evaluation: debugging-with...
Негізгі бет EQEmu: Debugging C++ binaries in akk-stack
Пікірлер