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

Debugger (Launch debugger and attached debugger) #187

Open
trymeouteh opened this issue Jul 26, 2024 · 3 comments
Open

Debugger (Launch debugger and attached debugger) #187

trymeouteh opened this issue Jul 26, 2024 · 3 comments

Comments

@trymeouteh
Copy link

Please add the ability to debug Nushell scripts within VSCode. Would help when making large scripts to have a step debugger and be able to see the call stack, variable values, etc.

Would be great to have both an launch debugger option and an attached debugger option.

@devyn
Copy link

devyn commented Jul 26, 2024

We don't have a debugger at all to start with, so this is something we'll have to work on. But I think there is interest in developing something like this with the Debug Adapter Protocol so that it can work with multiple editors.

@devyn
Copy link

devyn commented Jul 26, 2024

You may want to check out the debug profile command, it is able to show you the result of elements executed within a pipeline and the exact execution steps taken, at least. Since it outputs a table it's fairly easy to analyze it however you want with the standard Nushell data manipulation commands.

@fdncred
Copy link
Collaborator

fdncred commented Jul 26, 2024

You can also find commands that help with debugging by running this command below.

help commands | where category == debug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants