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
arguments in launch.json not work in code-server #4362
I recently came across the same issue in my code-server (Version: 3.12.0 on Ubuntu 18.04). The lanch.json file seems doesn't work while debugging the Python code. The same problem also happened for this version when I tested the code-server on MacOS. But after I downgraded the code-server to Version 3.11.1, this issue was solved, which works for Linux and MacOS.
same here with php debugging... launch.json seems to be ignored. As a workaround, instead of downgrading, i added the launch configuration directly in the server settings.json
Hi. We are affected by an issue that might be related to this.
In our case, it is not like the configuration values are not resolved, but it seems like that the entire configuration object is empty. It doesn't take into account the selected run configuration.
I have tried logging the entire object when our DebugConfigurationProvider is invoked, and in code server I get a {}, so not even the type, request or name are solved.
When we create the entire configuration object (with arguments, no need to hardcode the values), the arguments are resolved and the debugger starts.
Also, even when having multiple configurations in the launch.json file and no file selected, it asks the users which debug configuration they want to use, and suggests all installed debuggers, instead of the available ones
I'm scared to try different versions because something new always breaks.
:/ we're hoping to get things more stable with the next release. It's a major release so expect some breaking changes, but moving forward, it should get better.
Activity
shaojunyu commentedon Oct 16, 2021
I recently came across the same issue in my code-server (Version: 3.12.0 on Ubuntu 18.04). The lanch.json file seems doesn't work while debugging the Python code. The same problem also happened for this version when I tested the code-server on MacOS. But after I downgraded the code-server to Version 3.11.1, this issue was solved, which works for Linux and MacOS.
ianquu commentedon Oct 18, 2021
same there, downgrade to v3.11.1 solved
hxssgaa commentedon Oct 21, 2021
Encounter the same issue, please fix the error as it will impact the Python debugging as well
chrirauch commentedon Oct 29, 2021
same here with php debugging... launch.json seems to be ignored. As a workaround, instead of downgrading, i added the launch configuration directly in the server settings.json
pablocabrera85 commentedon Nov 1, 2021
Hi. We are affected by an issue that might be related to this.
In our case, it is not like the configuration values are not resolved, but it seems like that the entire configuration object is empty. It doesn't take into account the selected run configuration.
I have tried logging the entire object when our
DebugConfigurationProvideris invoked, and in code server I get a{}, so not even thetype,requestornameare solved.When we create the entire configuration object (with arguments, no need to hardcode the values), the arguments are resolved and the debugger starts.
pablocabrera85 commentedon Nov 1, 2021
Also, even when having multiple configurations in the launch.json file and no file selected, it asks the users which debug configuration they want to use, and suggests all installed debuggers, instead of the available ones
jsjoeio commentedon Nov 1, 2021
We'll have to see if this is still an issue after upgrading VS Code in #4414
bbrendon commentedon Dec 24, 2021
I also had to downgrade the python extension to about 1 yr old after downgrading to 3.11.1
jsjoeio commentedon Jan 3, 2022
@bbrendon have you tried in 4.0.0?
bbrendon commentedon Jan 4, 2022
@jsjoeio Negatory. I'm scared to try different versions because something new always breaks.
jsjoeio commentedon Jan 4, 2022
:/ we're hoping to get things more stable with the next release. It's a major release so expect some breaking changes, but moving forward, it should get better.
stale commentedon Jul 3, 2022
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days.