MegaBites-AI/Windows-powershell
0372
1#!/usr/bin/env bash2 3hash lldb-3.6 2>/dev/null || { echo >&2 "No lldb-3.6, please run 'sudo apt-get install lldb-3.6'"; exit 1; }4test -x debug/powershell || { echo >&2 "No debug/powershell, please run 'Start-PSBuild -Publish -Output debug'"; exit 1; }5test -x debug/libsosplugin.so || { echo >&2 "No debug/libsosplugin.so, please run 'Start-PSBuild -Publish -Output debug'"; exit 1; }6 7cat << EOF8 9Launching LLDB with SOS plugin...10Type 'run' or 'r' to start PowerShell.11Press Ctrl-C to interrupt PowerShell and run LLDB commands.12Type 'exit' when interrupted to leave LLDB.13 14Visit https://git.io/v2Jhh for CoreCLR debugging help.15 16Most useful commands are 'clrstack', 'clrthreads', and 'pe'.17 18EOF19 20pushd debug21lldb-3.6 -o "plugin load libsosplugin.so" -- ./pwsh $@22popd23 