Want to see what’s on a queue without consumi.ng the messages? Got a poison message that’s killing your app but dont know why? Here’s an example of this type of question: Possible to export message payload in queue level — Solace Community
What you need is a queue browser. This reads a message from a queue but doesn’t consume it - the message remains on the queue.
The simplest way to do this is with sdkperf. Use the -sql option to bind to the queue, -qb to enable queue browsing and -md to view the contents as text. If you are using a binary format or serialisation package, you’ll probably need to write an application: browsing is a flow property.