Open DavidDuranPerez opened 3 years ago
In this last step, vscode should automatically jump between the two debuggers between python and c++ code, but I cannot achieve this behavior.
The issue is that the python debugger and C++ debugger are two separate debug adapters. The C++ debugger does not know if the python debugger is stopped and vice versa. They are querying the process independently and do not know what the other debugger has done to that process. The interesting question is if we can see when the debug request/responses are coming from each adapter and if VS Code can handle the multiple requests at once.
Also, this extension is primarily focused on C/C++ and not mix mode with other languages. We appreciate any help from other users who may be attempting this scenario.
Yes, any help is much appreciated.
Bear also in mind that, theoretically, this works in Linux (see link). Hence, there may be some specific problem related to Windows...
I can just confirm Davids findings.. Feels odd that it seems to work on other platforms than Windows. I'm trying to migrate a large project from visual studio to vscode.
@WardenGnaw Is there anything in particular you need some help with?
The help wanted
is very general since this seems to be a mixed python and c++ debugging scenario issue since individually debugging via C++ is working. I am unsure how the python debugger would cause the gdb attach to not break at breakpoints.
@axelande, I am not familiar with this library, but I am open to help you if you decide to contribute towards fixing the issue.
@DavidDuranPerez @WardenGnaw I am happy to help to solve this issue. Is there any logs we should look at?
Hi @roxanadangerm glad to hear that. I don't have any log file, just the information I provided. If you tell me how to obtain the log file, I can give it to you that. Thanks.
Hi @DavidDuranPerez, I'm facing the same problem and have been looking for solutions everywhere but cannot find any, just wondering if you have solved this issue?
Unfortunately, I found no solution. The other alternative has been to have Linux on a hard drive and debug the code there.
On Mon, 13 Nov 2023 at 09:49, jameszhangzq @.***> wrote:
Hi @DavidDuranPerez https://github.com/DavidDuranPerez, I'm facing the same problem and have been looking for solutions everywhere but cannot find any, just wondering if you have solved this issue?
— Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode-cpptools/issues/6974#issuecomment-1807696407, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGDLPXPHXWLAVVZ4BC3PMGLYEHNLHAVCNFSM4XVKVDH2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBQG43DSNRUGA3Q . You are receiving this because you were mentioned.Message ID: @.***>
-- David Durán Pérez Aeronautical Engineer @.***
my guess is start 2 debugger servers one for each language, connect individual VScode instances for each.
Or try to solve it outside vscode with gdb, then just attach vscode as a viewer.
Type: Debugger
Describe the bug
To Reproduce Please include a code sample and
launch.json
configuration. Code to reproduce the behavior:I compile the C code with GCC 8.1 by running
I even specify O0 option to have all debug symbols.
Steps that I follow:
I am able to debug Python and C programs alone, but not together.
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.