2016-02-19 21:49:59 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
hash lldb-3.6 2>/dev/null || { echo >&2 "No lldb-3.6, please run 'sudo apt-get install lldb-3.6'"; exit 1; }
|
2016-06-06 21:13:39 +02:00
|
|
|
test -x debug/powershell || { echo >&2 "No debug/powershell, please run 'Start-PSBuild -Publish -Output debug'"; exit 1; }
|
|
|
|
test -x debug/libsosplugin.so || { echo >&2 "No debug/libsosplugin.so, please run 'Start-PSBuild -Publish -Output debug'"; exit 1; }
|
2016-02-19 21:49:59 +01:00
|
|
|
|
|
|
|
cat << EOF
|
|
|
|
|
|
|
|
Launching LLDB with SOS plugin...
|
|
|
|
Type 'run' or 'r' to start PowerShell.
|
|
|
|
Press Ctrl-C to interrupt PowerShell and run LLDB commands.
|
|
|
|
Type 'exit' when interrupted to leave LLDB.
|
|
|
|
|
|
|
|
Visit https://git.io/v2Jhh for CoreCLR debugging help.
|
|
|
|
|
|
|
|
Most useful commands are 'clrstack', 'clrthreads', and 'pe'.
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
2016-06-06 21:13:39 +02:00
|
|
|
pushd debug
|
2017-10-25 17:25:35 +02:00
|
|
|
lldb-3.6 -o "plugin load libsosplugin.so" -- ./pwsh $@
|
2016-02-19 21:49:59 +01:00
|
|
|
popd
|