Skip to content

Add support for no-config debugging using nushell #647

Open

Activity

github-actions

github-actions commented on Mar 4, 2025

@github-actions

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.

added this to the March 2025 milestone on Mar 4, 2025
eleanorjboyd

eleanorjboyd commented on Mar 31, 2025

@eleanorjboyd
Member

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

ishipachev

ishipachev commented on May 11, 2025

@ishipachev

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?

4 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Add support for no-config debugging using nushell · Issue #647 · microsoft/vscode-python-debugger