Skip to content

Add support for no-config debugging using nushell #647

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

Open
karthiknadig opened this issue Mar 4, 2025 · 3 comments
Open

Add support for no-config debugging using nushell #647

karthiknadig opened this issue Mar 4, 2025 · 3 comments
Assignees
Labels
feature-request Request for new features or functionality good first issue Good for newcomers needs community feedback
Milestone

Comments

@karthiknadig
Copy link
Member

See examples for other shells here:
https://github.com/microsoft/vscode-python-debugger/tree/main/bundled/scripts/noConfigScripts

@karthiknadig karthiknadig added feature-request Request for new features or functionality good first issue Good for newcomers needs community feedback labels Mar 4, 2025
Copy link

github-actions bot commented Mar 4, 2025

Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue.

@eleanorjboyd
Copy link
Member

Ill wait on work from @anthonykim1 here to implement since nushell compatibility might need some work

@eleanorjboyd eleanorjboyd modified the milestones: April 2025, May 2025 Apr 28, 2025
@ishipachev
Copy link

ishipachev commented May 11, 2025

Hi @eleanorjboyd !

Will it be enough to have something like that (based on other scripts in this folder)?

debugpy.nu:

#!/usr/bin/env nu
# Nushell script

$env.DEBUGPY_ADAPTER_ENDPOINTS = $env.VSCODE_DEBUGPY_ADAPTER_ENDPOINTS
let python_cmd = if $nu.os-info.name == "windows" {
    "python"
} else {
    "python3"
}
^$python_cmd $env.BUNDLED_DEBUGPY_PATH --listen 0 --wait-for-client ...$nu.args

How can I easily test it in VSCode? Should I configure debugger to fetch this nushell script to have it working smoothly with Python Debugger?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality good first issue Good for newcomers needs community feedback
Projects
None yet
Development

No branches or pull requests

3 participants