You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Debugger does not start on C++, C#, Python, Go, PHP code #4221
Opens launch.json and nothing happens.
Deleting launch.json temporarily solves the problem but after recreating launch.json, same problem happens again.
Screenshot
Notes
After updating 3.12.0 this problem started to happen. It worked fine before.
I tried deleting all JSON configuration files and creating it again, reinstalling C/C++ plugin, and selecting other debug options, but nothing worked for me.
I'm not familiar with VSCode so maybe it is my configuration problem, and sorry if it is.
I am not familiar with C++. If you can update the repro steps with step-by-step instructions (assume no C++ experience), then I can try locally and look into this.
Similar issue here. I have a c++ configuration in launch.json and debugging worked before. It looks like vscode tries to debug file that is currently edited (makes no sense). When launch.json is opened and I try to start c++ debugging by selecting my configuration, I see this message:
Thanks for linking to the commit! If fixing this means adding that commit to our fork of VS Code then we should be able to make that happen in our current sprint. Adding it to the version milestone.
For me, the debugging works on the first time i reload the window.
After that, i cant start the debugger. It then asks me to select an environment and then like discussed here just opens the launch.json file.
It even executes my Build-Task from tasks.json correctly, and then debugs it properly with breakpoints etc.
The project is written in C.
Just saw that frank8922 wrote that too. Exactly the same behaviour for me.
changed the title [-]Debugger does not start on C++, C#, Python, Go code[/-][+]Debugger does not start on C++, C#, Python, Go, PHP code[/+]on Dec 1, 2021
Activity
jsjoeio commentedon Sep 22, 2021
Hmm...I'm wondering if this is a duplicate of any of these:
I am not familiar with C++. If you can update the repro steps with step-by-step instructions (assume no C++ experience), then I can try locally and look into this.
senyai commentedon Sep 22, 2021
Similar issue here. I have a c++ configuration in launch.json and debugging worked before. It looks like vscode tries to debug file that is currently edited (makes no sense). When launch.json is opened and I try to start c++ debugging by selecting my configuration, I see this message:

jsjoeio commentedon Sep 22, 2021
Hmm...well if you can post repro steps, I can take a look! @senyai
senyai commentedon Sep 23, 2021
Let's try
CMakeLists.txt:and
code_server_issues_4221.cpp:senyai commentedon Sep 23, 2021
Very similar issue microsoft/vscode#133178
PabloZaiden commentedon Sep 23, 2021
It's not related to C++. I'm having the exact same issue with C#.
And, indeed, this is the commit that fixed it in codespaces: microsoft/vscode@63504d9
It doesn't seem that has been applied here yet.
cleardusk commentedon Sep 23, 2021
The same problem as @globalww @PabloZaiden, when debugging python.
Will it be fixed in the next release?
jsjoeio commentedon Sep 23, 2021
@senyai thank you for the repro steps!
Video
Here is a video of me going through those steps: https://youtu.be/-9y8GLocrqw (still uploading & processing atm)
Same thing happened to me.
jsjoeio commentedon Sep 23, 2021
Thanks for linking to the commit! If fixing this means adding that commit to our fork of VS Code then we should be able to make that happen in our current sprint. Adding it to the version milestone.
jsjoeio commentedon Sep 23, 2021
cc @TeffenEllis just giving you a heads-up on this!
8 remaining items
[-]Debugger does not start on C++, C#, Python code[/-][+]Debugger does not start on C++, C#, Python, Go code[/+]thxrben commentedon Oct 10, 2021
For me, the debugging works on the first time i reload the window.
After that, i cant start the debugger. It then asks me to select an environment and then like discussed here just opens the launch.json file.
It even executes my Build-Task from tasks.json correctly, and then debugs it properly with breakpoints etc.
The project is written in C.
Just saw that frank8922 wrote that too. Exactly the same behaviour for me.
bonarealm commentedon Dec 1, 2021
can not debug php also.
[-]Debugger does not start on C++, C#, Python, Go code[/-][+]Debugger does not start on C++, C#, Python, Go, PHP code[/+]marius-lupu commentedon Dec 12, 2021
Doesn't work also for me for a Python or a Go app. The solution is to use 3.11.0
lishunan246 commentedon Mar 7, 2022
Any updates?
Was it fixed in v4.1.0?
jsjoeio commentedon Mar 7, 2022
@lishunan246 I haven't checked but you're welcome to and then let us know!
lishunan246 commentedon Mar 13, 2022
I confirm that the debugger works in v4.1.0.
bonarealm commentedon Mar 13, 2022
Yes,it works.thanks for your attention and hard works.
jsjoeio commentedon Mar 14, 2022
Thank you @lishunan246 and @bonarealm♥️