Simplify debug configuration
See original GitHub issueCurrently the debug configuration (launch.json
) is error prone and unnecessarily verbose. I’ll address both separately.
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"pythonPath": "${config:python.pythonPath}",
"program": "${file}",
"cwd": "${workspaceFolder}",
"env": {},
"envFile": "${workspaceFolder}/.env",
"debugOptions": [
"RedirectOutput"
]
},
1. Verbose
- pythonPath, cwd, env, envFile, debugOptions none of these are required.
- We could easily fill these in automatically and remove the noise and make the config look simpler. This is what we can make it look like:
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}"
},
2. Error prone
- People change
pythonPath
in here (now its different to whats insettings.json
) and complain about VS Code using different values and similar issues. - People change environment variable files name in settings.json and forget to change it in here.
Finally:
I agree having the settings in the launch.json
is useful as it allows developers to immediately notice the different configuration options. How about we add one item with all configuration options and for the rest we simplify the config value as proposed (by rest
i’m referring to Python Current File, Python Integrated Terminal, Python External Terminal, Django, Flask, Pyranmid, etc)
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top Results From Across the Web
Simplified Debug screen : r/minecraftsuggestions - Reddit
There might be a setting called "developer settings" which when enabled, the player can use the debug screen, otherwise, this screen appears ...
Read more >Simplify debug mode #118 - gbdk-2020/gbdk-2020 - GitHub
It would be easier if lcc would just accept --debug and then set --debug for the compiler and -y for the linker.
Read more >Debugging in Visual Studio Code
To run or debug a simple app in VS Code, select Run and Debug on the Debug start view or press F5 and...
Read more >Using System Projects to Simplify Multicore Debug Launch
The default build configuration setting is . This assumes that the individual projects for each core and the system project have build ...
Read more >Minecraft Minihud - F3 Configurable Debug Menu Tutorial
Minihud can be used to display an F3 style debug menu with only the information you need showing i.e. just your co-ordinates taking...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@DonJayamanne yes, removing older versions of flask and pyspark makes sense to me. Don’t want the list to keep exploding !
@qubitron
Add Configuration
to get this (see below screen).Pyspark
. Similar to above. Only a handful of users using this.