-
Notifications
You must be signed in to change notification settings - Fork 510
VSCode doesn't stepin into debug function but is left outside #1788
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
Comments
Can you look at this VS code issue and see if it's the same one? I'm not sure if it's the right one because other issues are mentioned in the comments but it's the first one I found when it was happening to me last month. I'm using VS Code on Linux btw. |
For me, the breakpoint is in a different file than the one that I launch (I include the other file using the dot operator). So I have to chase down the other file in the call stack window, usually by clicking the top entry. |
That's what I have. I have Example file called .ps1 which calls module which is built from multiple .ps1 files that I'm debugging. But the thing is it works now for me. So it's a bit random. |
Are these files that it's suppose to jump to outside of your workspace? |
No, all my files are in the same workspace. |
No, in my case it's 1 workspace.
To get it to work I'm using Import-Module as above. |
@PrzemyslawKlys If it happens again, be sure to attach your log files and let us know the name of the file you were having issues stepping into. |
Sorry for very large picture. |
Duplicate of #1750 This has been fixed (due in the next release) and a workaround is discussed in that issue. |
System Details
System Details Output
Issue Description
Since some time (most likely on an upgrade of VSCode to the last version) I'm having a hard time debugging multi-file modules. You set a breakpoint in a function in 1 file, run the debug in the .ps1 somewhere else and breakpoint stops correctly but you are shown it stopped on the function executing it, not the breakpoint part. The data is also incorrect at that stage (or hidden) and you have to try and find it.
I am not sure if it has been reported before, I saw this on twitter a few days ago and confirmed with at least 1 other person experiencing this.
And to be honest it doesn't always happen. It happens randomly.
I'll try to catch it with some screenshots next time it happens
The text was updated successfully, but these errors were encountered: