Converting raw scriptPubKey to readable format I am debugging Bitcoin cpp code. I wanted to see what exactly come for scriptPubKey property of output. Theoretically, I know this but I want to see in the code how does it looks like. 

Now while debugging I see  scriptPubKey object which is of type CScript and hence the format is different which is unreadable (see the screen shot below, it looks like char[]). How to read this value?

It looks like this : 

\200\002\0\0à\210¼XUU\0\0\220»ÿÿÿ\177\0\0à¡·XUU\0
I figured it out. 

setps: 


Get the transactionID
RPCCall getRawTransaction transactionID - copy the rawTransaction
RPCCall decoderawtransaction rawTransaction - copy the scriptPubKey
RPCCall decodescript scriptPubKey