Help to launch the debugger in VS Codium.
Mahdis
ubuntulove74 at gmail.com
Tue Dec 13 10:22:02 UTC 2022
On Tuesday, 13 December 2022 at 09:48:30 UTC, WebFreak001 wrote:
>
> 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.
Sorry, I have a problem again, I made these settings, but it
compiles, then the result is displayed and it stops:
My launch.json settings:
```
{
"type": "code-d",
"request": "launch",
"name": "Debug D project",
"cwd": "${workspaceFolder}/source",
"program": "./app",
}
```
result in OUTPUT:
```
[Running] cd "/home/mahdis/PL/ProgrammingLanguage/newd/source/"
&& dmd app.d &&
"/home/mahdis/PL/ProgrammingLanguage/newd/source/"app
48
[Done] exited with code=0 in 1.408 seconds
```
result in DEBUG CONSOLE:
```
Launching: /home/mahdis/PL/ProgrammingLanguage/newd/source/app
Launched process 11460
Process exited with code 0.
```
More information about the Digitalmars-d-ide
mailing list