I’ve written a custom Sentry client for a C++ Linux-based server that provides stack traces with filenames and line numbers. Sentry displays the stack trace as expected.
I would like for Sentry to also display the source code inline with the stack trace, as I’ve seen it do for other platforms, but I can’t figure out how to make this happen.
I’ve uploaded my source files with sentry-cli like:
sentry-cli releases files $RELEASE upload src/foo/bar/example.c++ foo/bar/example.c++
Meanwhile, my client uses the “stacktrace” interface to report stack traces. A frame will report the filename as exactly
foo/bar/example.c++ along with a line number. But, Sentry doesn’t show the source code inline.
Is there a trick to making this work? The docs are not very clear.