question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Simplify debug configuration

See original GitHub issue

@brettcannon @qubitron

Currently 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 in settings.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:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
qubitroncommented, Mar 6, 2018

@DonJayamanne yes, removing older versions of flask and pyspark makes sense to me. Don’t want the list to keep exploding !

0reactions
DonJayamannecommented, Mar 6, 2018

@qubitron

  • do these .json files support comments? Yes, but we can’t pre-populate the snippets with comments.
  • Can I suggest we remove the debug configuration for older versions of flask (this will still be in the snippets. User can click on Add Configuration to get this (see below screen).
  • Can I suggest we remove the debug configuration for Pyspark. Similar to above. Only a handful of users using this.
screen shot 2018-03-05 at 4 21 43 pm
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found