Skip to content

Commit

Permalink
Fix spawning script
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Jun 24, 2024
1 parent efa52ec commit 2cbdd82
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions code/scripts/spawn.fish
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,14 @@ for NODE in (seq 0 $(math $NODES_COUNT - 1))
echo "[Node $NODE] Spawning node..."

if test $debug
set cmd_prefix "rust-lldb \
--one-line \"b malachite_cli::main\" \
--one-line \"run\" \
--one-line \"script with open('$NODE_HOME/logs/node.log', 'w') as f: f.write(str(lldb.debugger.GetSelectedTarget().process.id))\" \
--one-line \"continue\" \
./target/$build_folder/malachite-cli -- "
set lldb_script "
b malachite_cli::main
run
script with open('$NODE_HOME/node.pid', 'w') as f: f.write(str(lldb.debugger.GetSelectedTarget().process.id))
continue
"

set cmd_prefix "rust-lldb --source =(echo \"$lldb_script\") ./target/$build_folder/malachite-cli -- "

tmux send -t "$pane" "$cmd_prefix start --home '$NODE_HOME'" Enter
else if test $profile
Expand Down

0 comments on commit 2cbdd82

Please sign in to comment.