Debugging - juha-h/baresip-studio GitHub Wiki
In order to debug baresip related issues, in baresip Settings check Debug
and (if the issue is related to SIP request/replies) SIP Trace
. Then on your Android device, enable developer mode and in Developer Options, enable USB Debugging.
After these actions, debug messages and (if SIP Trace
is enabled) SIP requests/replies, so far produced by your baresip process can be written to a file on your Android device by selecting Logcat
from baresip app's main menu.
If you have a Linux device (I don't know anything about Windows or macOS), you can install adb
(Android Debug Bridge) package and connect your Android device to your Linux device using USB cable or WiFi.
After these actions, you can view debug messages and (if SIP Trace
is enabled) SIP requests/replies produced by your baresip process with command
adb shell 'logcat --pid=$(pidof -s <package name>)'
where is com.tutpro.baresip
or com.tutpro.baresip.plus
, or with command
adb logcat | grep Baresip
If you have Android Studio NDK bundle installed and the crash happens in native code, you can get stack trace with command
adb logcat | /opt/Android/ndk/<ndk version>/prebuilt/linux-x86_64/bin/ndk-stack -sym /usr/src/baresip-studio/app/build/intermediates/cxx/Debug/<random string>/obj/arm64-v8a/