Last active
February 26, 2024 17:52
-
-
Save ibc/3a10b27812d99c8abd1b to your computer and use it in GitHub Desktop.
WebRTC debugging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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