mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Move debug.sh
This commit is contained in:
1 parent
0b0b141ea5
commit
90be3585e1
1 file changed
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#!/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; }
|
||||
test -x bin/powershell || { echo >&2 "No bin/powershell, please run './build.sh'"; exit 1; }
|
||||
|
||||
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
|
||||
|
||||
pushd bin
|
||||
lldb-3.6 -o "plugin load libsosplugin.so" -- ./powershell $@
|
||||
popd
|
||||
Reference in new issue
Block a user