Skip to content

Commit 83d57c1

Browse files
add debug dev command
1 parent 26cd151 commit 83d57c1

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.just/devtools.just

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,23 @@ devtools *ARGS:
2020
fmt:
2121
@just --fmt --justfile {{ justfile }}
2222

23+
[no-cd]
24+
debug:
25+
#!/usr/bin/env bash
26+
set -euo pipefail
27+
28+
tmux has-session -t django-debug 2>/dev/null && tmux kill-session -t django-debug
29+
pkill -f "lsp-devtools" || true
30+
31+
tmux new-session -d -s django-debug "nvim tests/project/djls_app/templates/djls_app/base.html"
32+
tmux split-window -h -p 20 "just dev devtools record"
33+
34+
tmux select-pane -L
35+
36+
tmux attach-session -t django-debug
37+
38+
pkill -f "lsp-devtools" || true
39+
2340
[no-cd]
2441
explore FILENAME="djls.db":
2542
@just dev datasette -o {{ FILENAME }}

0 commit comments

Comments
 (0)