/ chandeskpro / debug-app.sh
swadhinbiswas Initial release v0.1.0 · 1/16/2026
ed7a4e4
34 lines · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash

# Debug script to check what's actually happening

echo "=== Checking if Vite is running ==="
curl -s http://localhost:1420 > /dev/null 2>&1
if [ $? -eq 0 ]; then
    echo "✅ Vite dev server is responding"
else
    echo "❌ Vite dev server is NOT responding"
fi

echo ""
echo "=== Checking React mounting ==="
curl -s http://localhost:1420 | grep -o '<div id="root">' 
if [ $? -eq 0 ]; then
    echo "✅ Root div exists"
else
    echo "❌ Root div missing"
fi

echo ""
echo "=== Checking for JavaScript files ==="
curl -s http://localhost:1420 | grep -o 'src="/src/main.tsx"'
if [ $? -eq 0 ]; then
    echo "✅ main.tsx is referenced"
else
    echo "❌ main.tsx not found in HTML"
fi

echo ""
echo "=== Starting app with console output ==="
WEBKIT_DISABLE_COMPOSITING_MODE=1 WEBKIT_DISABLE_DMABUF_RENDERER=1 npm run tauri:dev