Skip to content

Improve debugging support #30

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

Merged
merged 2 commits into from
Nov 13, 2015
Merged

Improve debugging support #30

merged 2 commits into from
Nov 13, 2015

Conversation

daviwil
Copy link
Contributor

@daviwil daviwil commented Nov 11, 2015

  • Add basic interactive command evaluation while running in the debugger
  • In debugger, use proper variable notation with dollar sign prefix

See individual commit messages for more details.

This change introduces the new OutputEvent which allows the the language
and debugging services to send script output text to the client to be
displayed to the user.  Currently this is used in VS Code's Debug Console
but could be used in other contexts as well.

This change also enables the user to evaluate PowerShell commands while
stopped in the debugger to aid in debugging.  In the future this will be
expanded to allow commands to be executed at any time.
This change adds the dollar sign '$' character to top-level variables that
are retrieved using the Get-Variables command via the DebugService.  This
character is used to refer to variables in PowerShell scripts so we need
to add it to variable names that are returned from the debugging service
for the sake of consistency.
@daviwil
Copy link
Contributor Author

daviwil commented Nov 11, 2015

Failed due to intermittent test failure issue #27, but actual code that was changed all has passing tests.

daviwil added a commit that referenced this pull request Nov 13, 2015
@daviwil daviwil merged commit 04a030c into master Nov 13, 2015
@daviwil daviwil deleted the daviwil/debug-improvements branch November 13, 2015 00:45
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

Successfully merging this pull request may close these issues.

1 participant