algorand / go-algorand

Algorand's official implementation in Go.
https://developer.algorand.org/
Other
1.35k stars 473 forks source link

tealdbg: large program breaks cdt session #3100

Closed barnjamin closed 2 years ago

barnjamin commented 3 years ago

When using tealdbg if the disassembled teal is over a given size and the source is requested the CDT session will be disconnected

image

I believe this is related to the buffer sizes set here:

https://github.com/algorand/go-algorand/blob/master/cmd/tealdbg/server.go#L34-L35

To test I overwrote those values with 60k and started the sandbox with the fork and re-ran the tealdbg command. With these changes the TEAL loaded successfully.

cusma commented 3 years ago

@barnjamin this is super useful! It took me some time without success to understand what was going on.