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

Change debugger type field back to "PowerShell" from powershell #1773

Merged
merged 2 commits into from
Feb 26, 2019

Conversation

rkeithhill
Copy link
Collaborator

@rkeithhill rkeithhill commented Feb 26, 2019

PR Summary

This allows the debugger to start but not sure why (lower-case) "powershell" doesn't
work. That said, the previous change meant that users would have to
update their launch.json to change the type to "powershell". But
even when I do that, the debugger still doesn't launch. So I'm a bit
puzzled. But this gets the debugger working again on master.

Also fixed some warnings in session.ts.

Fix #1768

PR Checklist

Note: Tick the boxes below that apply to this pull request by putting an x between the square brackets.
Please mark anything not applicable to this PR NA.

  • PR has a meaningful title
  • Summarized changes
  • PR has tests
  • This PR is ready to merge and is not work in progress
    • If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready

This allows the debugger to start but not sure why powershell doesn't
work. That said, the previous change meant that users would have to
update their launch.json to change the type to "powershell".  But
even when I do that, the debugger still doesn't launch. So I'm a bit
puzzled.  But this gets the debugger working again on master.

Also fixed some warnings in session.ts.
@@ -411,8 +411,9 @@ export class SessionManager implements Middleware {
if (!this.suppressRestartPrompt &&
(settings.useX86Host !== this.sessionSettings.useX86Host ||
settings.powerShellExePath.toLowerCase() !== this.sessionSettings.powerShellExePath.toLowerCase() ||
settings.developer.powerShellExePath.toLowerCase() !==
this.sessionSettings.developer.powerShellExePath.toLowerCase() ||
(settings.developer.powerShellExePath ? settings.developer.powerShellExePath.toLowerCase() : null) !==
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really wish TypeScript had C#'s ?! operator.

@rkeithhill rkeithhill changed the title Change debugger type field back to "PowerShell" from poweshell Change debugger type field back to "PowerShell" from powershell Feb 26, 2019
Copy link
Member

@TylerLeonhardt TylerLeonhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well... at least now we know for sure what lowercasing it did... LGTM

@rkeithhill rkeithhill merged commit 1917544 into master Feb 26, 2019
@rkeithhill rkeithhill deleted the rkeithhill/fix-debug-launch branch February 26, 2019 04:51
@TylerLeonhardt
Copy link
Member

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.

Current master branch cannot debug PowerShell files
2 participants