mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-08-24 14:20:20 -04:00
debugging
This commit is contained in:
parent
ddadf61f06
commit
f9d8d1688f
3 changed files with 38 additions and 0 deletions
5
scripts/debug.sh
Normal file
5
scripts/debug.sh
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
|
||||
killall lldb-server 2> /dev/null
|
||||
echo Running lldb-server
|
||||
lldb-server platform --server --listen 127.0.0.1:6969 --gdbserver-port 6970
|
12
scripts/debug_ssh.sh
Executable file
12
scripts/debug_ssh.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
|
||||
SSHHOST=$1
|
||||
if [[ "$SSHHOST" == "" ]]; then
|
||||
SSHHOST="bootstrap-1.dev.veilid.net"
|
||||
fi
|
||||
|
||||
echo Copying debug script
|
||||
scp -q $SCRIPTDIR/debug.sh $SSHHOST:/tmp/debug.sh
|
||||
echo Connecting to debug server
|
||||
ssh -t $SSHHOST -L 6969:127.0.0.1:6969 -L 6970:127.0.0.1:6970 'bash /tmp/debug.sh'
|
Loading…
Add table
Add a link
Reference in a new issue