Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No terminal output during debug session #427

Open
ymesheryakov opened this issue Sep 4, 2022 · 2 comments
Open

No terminal output during debug session #427

ymesheryakov opened this issue Sep 4, 2022 · 2 comments

Comments

@ymesheryakov
Copy link

No description provided.

@WebFreak001
Copy link
Member

can you describe your issue more?

@ymesheryakov
Copy link
Author

Ternimal is empty during debug, no outputs printed. They appear after debug session exit in debug conso;e. Break points work all right.

VS Code v. 1.71
dmd 2. 2.100.0

Windows 10 21H2
debug - Microsoft C/C++ extension

dub,json:
{
"name": "data_str",
"targetPath" : "bin",
"targetType": "executable",
"buildOptions-windows": ["debugInfoC"]
}

launch.json:
"version": "0.2.0",
"configurations": [
{
"type": "code-d",
"request": "launch",
"dubBuild": true,
"name": "Build & Debug DUB project",
"cwd": "${command:dubWorkingDirectory}/bin",
"program": "${command:dubTarget}"
},
{
"type": "code-d",
"request": "launch",
"name": "Debug D project",
"cwd": "${workspaceFolder}/bin",
"program": "./${fileBasenameNoExtension}.exe"
}
]

Ubuntu 20.04.5
debug - Native Debug

dub,json:
{
"name": "data_str",
"targetPath" : "bin",
"targetType": "executable",
"buildOptions": ["debugMode","debugInfo"]
}

lauch.json:
"version": "0.2.0",
"configurations": [
{
"type": "code-d",
"request": "launch",
"dubBuild": true,
"name": "Build & Debug DUB project",
"cwd": "${command:dubWorkingDirectory}/bin",
"program": "${command:dubTarget}"
},
{
"type": "code-d",
"request": "launch",
"name": "Debug D project",
"cwd": "${workspaceFolder}/bin",
"program": "./${fileBasenameNoExtension}"
},
{
"name": "Debug",
"type": "gdb",
"request": "launch",
"target": "./bin/${fileBasenameNoExtension}",
"cwd": "${workspaceRoot}",
"valuesFormatting": "parseText"
}
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants