-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Debugging stuck when using with vscode remote development #3582
Comments
What happens when you enable logging? |
Thanks for the response. For logging, I followed this instruction: |
These are the logs |
The logging steps are here. |
Thanks for correct me the logging process. |
@litanlitudan Thank you. This seems to be an issue with your The overarching issue is a VS Code issue that doesn't error when launching terminal applications : microsoft/vscode#67296 |
@pieandcakes Thanks for the info. But it still doesn't work. Here is what I tried, maybe I am missing some step:
|
@litanlitudan With remote I don't know if changing that locally changes that on remote. That's a question for VSCode Team. Can you try and change |
@pieandcakes Yeah, debugger works after changing externalConsole to false. Yeah, I guess that should be the issue for the remote module, not the c/c++ module. Also, c/c++ module works perfectly well with external console locally. What is the difference between using integrated console or external console? Is there any performance difference? Thanks for your help anyway! |
There is no difference between integrated console and external console when debugging on Linux except that one is a separate window. With the fact that you are mixing two OSes I don't know what the problem is in your case unfortunately. I'm going to close this for now. |
Type: Debugger
Input information below
Please review existing issues and our documentation at https://github.com/Microsoft/vscode-cpptools/tree/master/Documentation prior to filing an issue.
Describe the bug
In $workspace folder, I have an a.out file compiled by gcc -g test.c
My debug configuration is as the following:
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/a.out",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
To Reproduce
Please include a code sample and
launch.json
configuration.Steps to reproduce the behavior:
Additional context
If applicable, please include logging by adding "logging": { "engineLogging": true, "trace": true, "traceResponse": true } in your
launch.json
Add any other context about the problem here including log or error messages in your Debug Console or Output windows.
The text was updated successfully, but these errors were encountered: