question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Debug Service crash stepping through PowerShell module

See original GitHub issue

System Details

  • Operating system name and version: Windows Server 2016
  • VS Code version: 1.4.1 (x64 bit)
  • PowerShell extension version: 1.4.1
  • Output from $PSVersionTable:
C:\Windows\system32> code -v
1.14.2
cb82febafda0c8c199b9201ad274e25d9a76874e
C:\Windows\system32> $pseditor.EditorServicesVersion
C:\Windows\system32> code --list-extensions --show-versions
CoenraadS.bracket-pair-colorizer@0.10.7
donjayamanne.githistory@0.2.2
DotJoshJohnson.xml@1.9.2
dustinsanders.an-old-hope-theme-vscode@2.0.0
eamodio.gitlens@4.3.3
fabiospampinato.vscode-statusbar-debugger@1.0.3
ms-mssql.mssql@1.1.0
ms-vscode.PowerShell@1.4.1
ms-vscode.wordcount@0.1.0
RoscoP.ActiveFileInStatusBar@1.0.2
sensourceinc.vscode-sql-beautify@0.0.4
Shan.code-settings-sync@2.8.2
streetsidesoftware.code-spell-checker@1.3.2
tnaseem.theme-seti@0.0.2
Tyriar.shell-launcher@0.1.1
waderyan.gitblame@2.0.2
C:\Windows\system32> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.14393.1480
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.1480
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Issue Description

I am experiencing a problem with…debug services crashing.

Oddly enough I’ve had it step through this before, but after it crashing 2 or 3 times figured I’d post these logs. I get to a certain line in the module that builds an object using Microsoft.SqlServer.Managemenet.Smo.Server. It steps past the first few lines but while I step into the command more it seems like it is pausing, then it just crashes.

Logs are attached below from extension log.

Attached Logs

temp.zip

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
SetTrendcommented, Apr 22, 2020

At the moment I don’t have access to a large PowerShell script, I’m afraid. The customer’s project has finished.

If you believe this issue is fixed, please feel free to close. I will happily agree and test sometime later.

Thank you for all your efforts! 👍 ❤️

0reactions
JustinGrotecommented, Apr 22, 2020

@SydneyhSmith @TylerLeonhardt seems fixed to me on new version, I haven’t been able to create any race conditions by mashing F10 through a debug.

@settrend can you confirm?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugging PowerShell script in Visual Studio Code – Part 1
First look at the PowerShell Debugger in Visual Studio Code · Continue / Pause – F5 · Step Over – F10 · Step...
Read more >
Debugging 102: My script only crashes when I run it, never in ...
Just load the offending application or script in a debugger, run it, repeat the steps required to make it go boom, and you...
Read more >
How to capture and debug .NET application crash dumps in ...
Navigate to the build output directory and run the *.exe file. It should run, display a stack trace in the console window, and...
Read more >
Debugging PowerShell - YouTube
PowerShell Summit videos are recorded on a "best effort" basis. We use a room mic to capture as much room audio as possible,...
Read more >
Automating Analyzing Tons of Minidump Files with WinDBG ...
analyze and get the list of loaded modules, the following debugging script text file called, BasicAnalysis.txt, shows those commands. The asterisk are ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found