FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
PowerShell/tools/debug.sh at source-depot · ChiangFamily/PowerShell · GitHub
ChiangFamily
/
PowerShell
Public
forked from
PowerShell/PowerShell
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
PowerShell
/
tools
/
debug.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
22 lines (15 loc) · 778 Bytes
Breadcrumbs
PowerShell
/
tools
/
debug.sh
Copy path
File metadata and controls
executable file
·
22 lines (15 loc) · 778 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!
/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 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
;
}
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
debug
lldb-3.6 -o
"
plugin load libsosplugin.so
"
-- ./powershell
$@
popd
Back
|
FazBrowse Home
|
New Git URL