Help to launch the debugger in VS Codium.
WebFreak001
d.forum at webfreak.org
Tue Dec 13 09:48:30 UTC 2022
On Tuesday, 13 December 2022 at 09:39:14 UTC, Mahdis wrote:
> On Tuesday, 13 December 2022 at 08:47:48 UTC, WebFreak001 wrote:
>>
>> no, CodeLLDB does not need lldb-mi. It also automatically
>> downloads LLDB, so you don't need to install anything.
>>
>> Native Debug needs lldb-mi, but it's not a great integration
>> like CodeLLDB.
>
> The problem that occurred:
> could not find a process named
> /home/mahdis/PL/ProgrammingLanguage/test/a
>
> I did the launch.json settings in this way, but it doesn't
> work:
> {
> // Use IntelliSense to learn about possible attributes.
> // Hover to view descriptions of existing attributes.
> // For more information, visit:
> https://go.microsoft.com/fwlink/?linkid=830387
> "version": "0.2.0",
> "configurations": [
> {
> "name": "Launch",
> "type": "lldb",
> "request": "launch",
> "program": "${workspaceFolder}/main",
> "args": ["-arg1", "-arg2"],
> }
>
> ]
> }
>
> Can I see your launch.json settings?
I don't know where the `test/a` path comes from because your
launch.json is `/main` at the end.
This one should work:
```
{
"type": "code-d",
"request": "launch",
"name": "Debug D project",
"cwd": "${workspaceFolder}",
"program": "./main"
}
```
the "code-d" debug type just forwards to another debug extension.
It picks the best one that is installed for the current platform.
For Linux that is CodeLLDB.
More information about the Digitalmars-d-ide
mailing list