This is a meta-bug.
1. Make sure that Web Inspector Backend generates only correct outgoing messages as specified in Inspector.json.
Since messages are 99% generated by C++, there could be a safe compile-time solution (rather than runtime assert): generated message builder. This would guarantee that only correct messages could be constructed.
2. Validate incoming messages against Inspector.json.