user87861: 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


user87861: I figured it out. 
setps: 

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


87861: <p>I am debugging Bitcoin cpp code. I wanted to see what exactly come for <code>scriptPubKey</code> property of output. Theoretically, I know this but I want to see in the code how does it looks like. </p>

<p>Now while debugging I see  <code>scriptPubKey</code> object which is of type <code>CScript</code> and hence the format is different which is unreadable (see the screen shot below, it looks like char[]). How to read this value?<a href="https://i.stack.imgur.com/Az1dR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Az1dR.png" alt="enter image description here"></a></p>

<p>It looks like this : 
<code>
\200\002\0\0à\210¼XUU\0\0\220»ÿÿÿ\177\0\0à¡·XUU\0
</code></p>
 87861: <p>I figured it out. </p>

<p>setps: </p>

<ol>
<li>Get the <code>transactionID</code></li>
<li>RPCCall <code>getRawTransaction transactionID</code> - copy the rawTransaction</li>
<li>RPCCall <code>decoderawtransaction rawTransaction</code> - copy the scriptPubKey</li>
<li>RPCCall <code>decodescript scriptPubKey</code></li>
</ol>
