Skip to content

Commit 6063193

Browse files
authored
docs: Update debugging_with_cli.md
1 parent 9403cd0 commit 6063193

File tree

1 file changed

+187
-40
lines changed

1 file changed

+187
-40
lines changed

docs/book/src/debugging/debugging_with_cli.md

Lines changed: 187 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -83,46 +83,193 @@ Now we would like to inspect the program while it's running. To do this, we firs
8383

8484
```json
8585
{
86-
"Script": {
87-
"script_gas_limit": 1000000,
88-
"script": [],
89-
"script_data": [],
90-
"policies": {
91-
"bits": "GasPrice",
92-
"values": [0,0,0,0]
93-
},
94-
"inputs": [
95-
{
96-
"CoinSigned": {
97-
"utxo_id": {
98-
"tx_id": "c49d65de61cf04588a764b557d25cc6c6b4bc0d7429227e2a21e61c213b3a3e2",
99-
"output_index": 18
100-
},
101-
"owner": "f1e92c42b90934aa6372e30bc568a326f6e66a1a0288595e6e3fbd392a4f3e6e",
102-
"amount": 10599410012256088338,
103-
"asset_id": "2cafad611543e0265d89f1c2b60d9ebf5d56ad7e23d9827d6b522fd4d6e44bc3",
104-
"tx_pointer": {
105-
"block_height": 0,
106-
"tx_index": 0
107-
},
108-
"witness_index": 0,
109-
"maturity": 0,
110-
"predicate_gas_used": null,
111-
"predicate": null,
112-
"predicate_data": null
113-
}
114-
}
115-
],
116-
"outputs": [],
117-
"witnesses": [
118-
{
119-
"data": [
120-
156,254,34,102,65,96,133,170,254,105,147,35,196,199,179,133,132,240,208,149,11,46,30,96,44,91,121,195,145,184,159,235,117,82,135,41,84,154,102,61,61,16,99,123,58,173,75,226,219,139,62,33,41,176,16,18,132,178,8,125,130,169,32,108
121-
]
122-
}
123-
],
124-
"receipts_root": "0000000000000000000000000000000000000000000000000000000000000000"
125-
}
86+
"Script": {
87+
"body": {
88+
"script_gas_limit": 1000000,
89+
"script": [
90+
144,
91+
0,
92+
0,
93+
4,
94+
71,
95+
0,
96+
0,
97+
0,
98+
0,
99+
0,
100+
0,
101+
0,
102+
0,
103+
0,
104+
0,
105+
68,
106+
93,
107+
252,
108+
192,
109+
1,
110+
16,
111+
255,
112+
243,
113+
0,
114+
26,
115+
72,
116+
16,
117+
0,
118+
26,
119+
68,
120+
0,
121+
0,
122+
93,
123+
67,
124+
240,
125+
0,
126+
22,
127+
65,
128+
20,
129+
0,
130+
115,
131+
64,
132+
0,
133+
13,
134+
51,
135+
72,
136+
0,
137+
0,
138+
36,
139+
0,
140+
0,
141+
0,
142+
16,
143+
69,
144+
16,
145+
64,
146+
27,
147+
73,
148+
36,
149+
64,
150+
144,
151+
0,
152+
0,
153+
8,
154+
71,
155+
0,
156+
0,
157+
0,
158+
0,
159+
0,
160+
0,
161+
0,
162+
0,
163+
0,
164+
0,
165+
5
166+
],
167+
"script_data": [],
168+
"receipts_root": "0000000000000000000000000000000000000000000000000000000000000000"
169+
},
170+
"policies": {
171+
"bits": "MaxFee",
172+
"values": [
173+
0,
174+
0,
175+
0,
176+
0
177+
]
178+
},
179+
"inputs": [
180+
{
181+
"CoinSigned": {
182+
"utxo_id": {
183+
"tx_id": "c49d65de61cf04588a764b557d25cc6c6b4bc0d7429227e2a21e61c213b3a3e2",
184+
"output_index": 18
185+
},
186+
"owner": "f1e92c42b90934aa6372e30bc568a326f6e66a1a0288595e6e3fbd392a4f3e6e",
187+
"amount": 10599410012256088000,
188+
"asset_id": "2cafad611543e0265d89f1c2b60d9ebf5d56ad7e23d9827d6b522fd4d6e44bc3",
189+
"tx_pointer": {
190+
"block_height": 0,
191+
"tx_index": 0
192+
},
193+
"witness_index": 0,
194+
"maturity": 0,
195+
"predicate_gas_used": null,
196+
"predicate": null,
197+
"predicate_data": null
198+
}
199+
}
200+
],
201+
"outputs": [],
202+
"witnesses": [
203+
{
204+
"data": [
205+
156,
206+
254,
207+
34,
208+
102,
209+
65,
210+
96,
211+
133,
212+
170,
213+
254,
214+
105,
215+
147,
216+
35,
217+
196,
218+
199,
219+
179,
220+
133,
221+
132,
222+
240,
223+
208,
224+
149,
225+
11,
226+
46,
227+
30,
228+
96,
229+
44,
230+
91,
231+
121,
232+
195,
233+
145,
234+
184,
235+
159,
236+
235,
237+
117,
238+
82,
239+
135,
240+
41,
241+
84,
242+
154,
243+
102,
244+
61,
245+
61,
246+
16,
247+
99,
248+
123,
249+
58,
250+
173,
251+
75,
252+
226,
253+
219,
254+
139,
255+
62,
256+
33,
257+
41,
258+
176,
259+
16,
260+
18,
261+
132,
262+
178,
263+
8,
264+
125,
265+
130,
266+
169,
267+
32,
268+
108
269+
]
270+
}
271+
]
272+
}
126273
}
127274
```
128275

0 commit comments

Comments
 (0)