Skip to content

debugger won't focus on files that are not under the current file's directory in vscode 1.31 #1750

@AndyP2

Description

@AndyP2

Unexpected behaviour in vscode 1.31:

  • start debug session on a .ps1 file
  • step into a .ps1 file on a path that is not below the current file, i.e. whose relative path has .. in it
  • observe that focus stays on the original file, even though execution has now paused in the called file
  • observe that switching focus to the called file and single stepping switches back to the original file

Downgrade back to vscode 1.30.2 to see desired behaviour:

  • start debug session on a ps1 file
  • step into the same script file
  • observe the focus switches to the called file
  • observe that single stepping keeps focus on the called file

What changed between 1.30.2 and 1.31? Is this just a powershell issue or does it occur in other languages? It looks like it's trying to implement 'just my code' but I can find no way to turn it off except to stay on 1.30.2.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions