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

No-config debugging #561

Closed
cwebster-99 opened this issue Jan 20, 2025 · 2 comments
Closed

No-config debugging #561

cwebster-99 opened this issue Jan 20, 2025 · 2 comments
Labels
enhancement New feature or request on-testplan Added to test plan
Milestone

Comments

@cwebster-99
Copy link
Member

cwebster-99 commented Jan 20, 2025

⚠️ Please see our wiki for more information on this feature and troubleshooting tips!

Hey folks 👋

After listening to community feedback that configuring the debugger can be difficult and confusing, we have begun working on a no-config debugging experience! We are excited to say that this is now available in the pre-release version of the Python debugger extension. To install the pre-release version of the extension, navigate to the Extensions view, and select "Install Pre-release" if you do not already have the extension installed, or select "Switch to Pre-Release" on the Extensions page.

As the name implies, this workflow allows you to start the debugger without creating or managing a Python debug confirmation in launch.json. Simply replace python with debugpy prefixed in your run command in the terminal, for example debugpy main.py, to start a debug session. (We also recommend adding the following to your User settings.json file: "python.experiments.optOutFrom": ["pythonTerminalEnvVarActivation"]).

You'll see feedback in the terminal that a debug session is starting and the debug toolbar pop up in the editor. Set break points in the UI and open up the debug toolbar to use all of VS Code's debugging functionality.

no.config.debug.mp4

We consider this our initial approach but acknowledge there is room to grow! We would love initial feedback on this workflow, how it works for you, and if you have any suggestions for how this can further be improved.

Happy Python coding!

Tracking issue: #88

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jan 20, 2025
@cwebster-99 cwebster-99 added enhancement New feature or request and removed triage-needed Needs assignment to the proper sub-team labels Jan 20, 2025
@cwebster-99 cwebster-99 pinned this issue Jan 20, 2025
@eleanorjboyd eleanorjboyd added the on-testplan Added to test plan label Jan 28, 2025
@eleanorjboyd eleanorjboyd added this to the January 2025 milestone Jan 28, 2025
@jimisola
Copy link

Is this something that your friends making the Java extension could implement as well?

@cwebster-99
Copy link
Member Author

@jimisola I encourage you to open an issue on their repo requesting similar support so the team can consider and prioritize this in their extension!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request on-testplan Added to test plan
Projects
None yet
Development

No branches or pull requests

3 participants