Skip to content

Instantly share code, notes, and snippets.

@ibc
Last active February 26, 2024 17:52
Show Gist options
  • Save ibc/3a10b27812d99c8abd1b to your computer and use it in GitHub Desktop.
Save ibc/3a10b27812d99c8abd1b to your computer and use it in GitHub Desktop.
WebRTC debugging
/Google\ Chrome\ Canary --enable-logging --v=1 --vmodule=*/webrtc/*=2,*/libjingle/*=2,*=-2 --enable-logging=stderr
// Easier:
/Google\ Chrome\ Canary --enable-logging --v=1 --vmodule=*/webrtc/*=2,*=-2 --enable-logging=stderr
#!/usr/bin/env bash
#
# Run Firefox with WebRTC debugging.
# - Signaling (SDP) logs go to SIGNALING_FILE.
# - ICE/STUN/TURN logs go to stderr.
#
FIREFOX_EXEC=/Applications/Firefox.app/Contents/MacOS/firefox
SIGNALING_FILE=/tmp/firefox_signaling.log
set -e
# Signaling logs (SDP):
export NSPR_LOG_FILE=$SIGNALING_FILE
export NSPR_LOG_MODULES=signaling:5,mtransport:5,timestamp:1 # signaling and mtransport: 1-9
# ICE/STUN/TURN logs:
export R_LOG_LEVEL=9
export R_LOG_DESTINATION=stderr
export R_LOG_VERBOSE=1 # include the module name generating the message
$FIREFOX_EXEC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment