#problem with VSCode debugging on Windows

1 messages · Page 1 of 1 (latest)

vivid ivy
#

it ain't hitting the breakpoints
I'm trying to debug a DLL btw
actually I'm trying to debug a thread the DLL spawns inside the process after it gets injected into it
launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "debug internal",
            "type": "lldb",
            "request": "attach",
            "program": "C:\\Program Files\\WindowsApps\\Microsoft.WindowsNotepad_11.2508.38.0_x64__8wekyb3d8bbwe\\Notepad.exe",
            "args": [],
            "cwd": "${workspaceRoot}",
            "initCommands": [
                "settings set target.x86-disassembly-flavor intel"
            ]
        }
    ]
}

codelldb installed
Zig extention installed

raw kelp
#

I'm personally not aware of anyone who managed CodeLLDB on Windows to work reliably with Zig. I'm personally refraining to cppvsdbg, AFAIK also Visual Studio's debugger works.

vivid ivy
raw kelp
#

I'm still retaining LLDB configurations, because occasionally I do want to use LLDB, but it works usually just to a very small and limited extent

vivid ivy
#

I just tried cppvsdbg
Win64 thread should be the thread I create from the injected dll but still no breakpoints are hit
unknown source should be a clue lol

vivid ivy
raw kelp
raw kelp
vivid ivy
vivid ivy
#

@raw kelp CodeLLDB works btw
it wasn't detecting sources because I was injecting the dll in the process using manual mapping