Skip to content
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

Add experiment support to debug configuration caching #17025

Closed
karthiknadig opened this issue Aug 18, 2021 · 2 comments · Fixed by #17026
Closed

Add experiment support to debug configuration caching #17025

karthiknadig opened this issue Aug 18, 2021 · 2 comments · Fixed by #17026
Assignees
Labels
area-debugging experimenting Feature is part of an experiment feature-request Request for new features or functionality verification-needed Verification of issue is requested verified Verification succeeded
Milestone

Comments

@karthiknadig
Copy link
Member

No description provided.

@karthiknadig karthiknadig added feature-request Request for new features or functionality needs PR area-debugging experimenting Feature is part of an experiment labels Aug 18, 2021
@karthiknadig karthiknadig added this to the August 2021 milestone Aug 18, 2021
@karthiknadig karthiknadig self-assigned this Aug 18, 2021
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Aug 18, 2021
@karthiknadig karthiknadig removed the triage-needed Needs assignment to the proper sub-team label Aug 18, 2021
@karthiknadig karthiknadig added the verification-steps-needed Steps to verify are needed for verification label Aug 19, 2021
@karthiknadig
Copy link
Member Author

karthiknadig commented Aug 20, 2021

Verification steps:

  1. Make sure you have "python.experiments.optInto": ["All"], in your user settings. If you did not have it, add it and reload.
  2. Make sure you don't have any launch.json files under or any launch configurations.
  3. Create a python file in vscode. Use following content if you need:
import math

SQ5 = math.sqrt(5.0)


def fib(n):
    # Compute nth Fibonacci number without recursion
    return math.floor((((1.0 + SQ5) ** n) - ((1.0 - SQ5) ** n)) / (SQ5 * (2 ** n)))


print(fib(10))
  1. Set breakpoint any where in file, and start debugging.
  2. You will be asked to select one of the pre-defined debug configurations, Select current file.
  3. You should hit a breakpoint. End the debugging session and start debugging again.
  4. This time you should not be asked to select a debug configuration.

@karthiknadig karthiknadig added verification-needed Verification of issue is requested and removed verification-steps-needed Steps to verify are needed for verification labels Aug 20, 2021
@weinand
Copy link

weinand commented Aug 25, 2021

That works fine (after switching to the Insider version of Python extension...)

@weinand weinand added the verified Verification succeeded label Aug 25, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-debugging experimenting Feature is part of an experiment feature-request Request for new features or functionality verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants