Skip to content

Callstack not focusing on correct element #1803

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

Closed
itfranck opened this issue Mar 19, 2019 · 2 comments
Closed

Callstack not focusing on correct element #1803

itfranck opened this issue Mar 19, 2019 · 2 comments
Labels

Comments

@itfranck
Copy link

itfranck commented Mar 19, 2019

Callstack not focusing on correct element

Version: 1.32.3 (system setup)
Commit: a3db5be9b5c6ba46bb7555ec5d60178ecc2eaae4
Date: 2019-03-14T23:43:35.476Z
Electron: 3.1.6
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.17763

When using Powershell, some scenarios make the callstack not work properly.

Here's one example of that behavior.

To reproduce, clone [ https://github.com/itfranck/vscode-powershell-callstack-bug](
then open the following files in the editor:

  • debug.ps1
  • 1\debug.ps1
  • test-bug\test.psm1

Place a breakpoint in the begin and process block of test.psm1

Test1.psm1

Go in 1\debug.ps1, then start a debug session.

Debug1_0

The expected behavior is that test.ps1 should be focused.
However, debug.ps1 remains in focus. The callstack also show the top frame not emphasized as it should be.

Furthermore, every subsequent continue (F10) or step-in (F11) put focus back to the second callstack frame (debug.ps1) instead of staying into test.psm1.

Debug1_1

Debugging debug.ps1 (not in 1 subfolder) works fine.

Debug2_0

Debug2_1

This was tested on Windows 10 and Windows 2016 using the latest version, both with Powershell and Powershell Preview extensions, as much with code and code insiders.

edit:
I am unsure but it might or might not be relevant with #1783 . That being said, the current behavior make it a pain to debug modules as the proper step is not focusing.

@JoergBolten
Copy link

I can confirm this issue with VS Code version Version: 1.32.3, as well as the current insider builds of VS Code. This issue makes step-by-step debugging impossible when working with modules.

@rkeithhill
Copy link
Contributor

Dupe of #1750 A fix is coming to the PowerShell extension. Hopefully it will be released next week. There's a chance we will have a preview version with this fix if folks want to try it out before then.

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

No branches or pull requests

4 participants