-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify generated launch.json #3321
Comments
Hi @isidorn, I like the direction, but want to make sure this doesn't add confusion for users who aren't using debug configurations. In our user tests we see the large majority of new users launch debugging from the Debug menu using Debug -> Start Debugging without using the debug activity view: Which doesn't surface the ability to select/change the current debug configuration, so if the user made bad choices on their first attempt, debugging will be broken for the current workspace without an obvious way to fix it. The other concern I have is that currently adding another configuration takes me to a different experience (Python Configurations may not be in view), and doesn't make the new configuration the active one: Which is problematic because:
So my suggestion would be that:
With regards to your suggestions above for the configurations:
Let me know what you think of the above! |
@qubitron thanks a lot for you quick reply. Very good points.
Once you have some version of the quick pick help in launch.json generation working let me know and I can try it out to provide more feedback. Apart from this please let me know if there is anything else on the vscode side which we should add that could potentially make the debug setup for pyhton much easier. I do not know what are the biggest pain points here for the python users when it comes to configuring debugging. |
Sounds good! @Microsoft/pvsc-team while we're working on this I have a few other suggestions:
|
Related may be #2710 |
Changes to be made:
|
For #3321 * Created a separate PR to refactor before introducing changes related to 3321 * Easier to review and merge (smaller changes)
Very cool work @DonJayamanne |
@DonJayamanne, I tried master and found some small problems:
It still says "No Configurations"; the new config is not added. However, it does fix itself once I click the green arrow.
This echos what @qubitron said:
I suppose this is not a new problem. However, we're including fewer of the defaults. It would probably make sense to include a small comment in the launch.json referring users to a doc page that enumerates the various options. |
FWIW, otherwise the change looks good. :) |
This should appear when starting to debug with F5 when no configuration exists |
Prescribed solution:
|
Note The item
Option 1: With
|
Whats been implemented:
|
I've verified that this works;
Auto-completion in the launch.json works too, though it didn't let me select one of the original 6 pre-built configs. |
@ericsnowcurrently what do you mean by this? |
Hey,
VSCode dev here. This milestone I am looking into simplifing generated
launch.json
for various extensions microsoft/vscode#62851The
launch.json
that Python generates is attached at the end. This is far too complex for the avarage user. I suggest to simplify it the following way:DebugConfigurationProvider
should use thequickPick
to ask the user if he would like to debug the current file, attach, debug a python module, python django or debug python flask. Based on the user response only generate one configurationattach
, this should be the default value and should not be specifiedquickInput
, exampleconfigurationSnippets
which is greatIf you agree with the suggestions I am making here I am also here to help with any potential questions you might have. The changes should not require a lot of work but will simplify the flow a lot imho.
The text was updated successfully, but these errors were encountered: