Debug Kettu on your phone by connecting to your PC over the local network (LAN).
This server is for development/debugging only. It does not interact with production data.
- Start the devtools server (on your PC):
npm run devtools- Look at the console output. It will print one or more LAN URLs like:
ws://192.168.x.x:<port>
-
In Kettu Discord on your phone:
- Open Settings → Developer (or Debug)
- Set the Devtools URL to one of the printed LAN URLs
-
Ensure your phone and PC are on the same Wi-Fi network.
You can run the server directly with node:
node scripts/devtools-local.mjs --port 7864 --host 0.0.0.0Supported args:
--port, -p(default:7864)--host, -h(default:0.0.0.0= all interfaces)
The devtools server supports these commands in its terminal:
-
.clients(or.ls)
List connected clients -
.help(or?)
Show help -
.exit(or.q)
Shut down the devtools server -
<code>
Type any code and press Enter to execute it on all connected clients
If a plugin installs but gets disabled:
- Connect your phone to the devtools server
- Watch the devtools server output for errors
- Use
.clientsto verify the phone is connected