Add powershell demo
Doeesn't work due to debugger crashing on stack trace request. Related #69
This commit is contained in:
parent
c4202958e8
commit
cf44cae98c
5 changed files with 78 additions and 1 deletions
17
support/test/powershell/.vimspector.json
Normal file
17
support/test/powershell/.vimspector.json
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"configurations": {
|
||||
"launch": {
|
||||
"adapter": "PowerShell",
|
||||
"configuration": {
|
||||
"request": "launch",
|
||||
"Script": "${file}",
|
||||
"NoDebug": false,
|
||||
"StopOnEntry": true,
|
||||
"Args": [],
|
||||
"Cwd": "${workspaceRoot}",
|
||||
"CreateTemporaryIntegratedConsole": true,
|
||||
"Env": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
6
support/test/powershell/connect
Executable file
6
support/test/powershell/connect
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
PIPE=$(python -c 'import json; print( json.load( open( "session.json" ))["debugServicePipeName"] )')
|
||||
|
||||
ssh -L 4321:$PIPE localhost
|
||||
|
||||
18
support/test/powershell/run
Executable file
18
support/test/powershell/run
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
PSES_BUNDLE_PATH=$HOME/.vim/bundle/vimspector/gadgets/macos/PowerShellEditorServices
|
||||
SESSION_TEMP_PATH=$(pwd)
|
||||
|
||||
pwsh -NoProfile \
|
||||
-Command \
|
||||
"$PSES_BUNDLE_PATH/PowerShellEditorServices/Start-EditorServices.ps1 \
|
||||
-BundledModulesPath $PSES_BUNDLE_PATH \
|
||||
-LogPath $SESSION_TEMP_PATH/logs.log \
|
||||
-SessionDetailsPath $SESSION_TEMP_PATH/session.json \
|
||||
-FeatureFlags @() \
|
||||
-AdditionalModules @() \
|
||||
-HostName 'My Client' \
|
||||
-HostProfileId 'myclient' \
|
||||
-HostVersion 1.0.0 \
|
||||
-EnableConsoleRepl \
|
||||
-LogLevel Verbose"
|
||||
9
support/test/powershell/test.ps1
Normal file
9
support/test/powershell/test.ps1
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
echo "HELLO"
|
||||
echo "HELLO"
|
||||
echo "HELLO"
|
||||
echo "HELLO"
|
||||
echo "HELLO"
|
||||
echo "HELLO"
|
||||
echo "HELLO"
|
||||
echo "HELLO"
|
||||
echo "HELLO"
|
||||
Loading…
Add table
Add a link
Reference in a new issue