tact-docs icon indicating copy to clipboard operation
tact-docs copied to clipboard

Document how to debug your contract and dump variables

Open talkol opened this issue 2 years ago • 5 comments

Add one section about debugging contracts in general

Add the dump function to the reference of static available functions

talkol avatar Feb 20 '23 19:02 talkol

https://docs.tact-lang.org/language/ref/common#dump https://docs.tact-lang.org/language/guides/debug

ex3ndr avatar Feb 22 '23 13:02 ex3ndr

The Tact Telegram chat interactions show people still have some issues with using the dump function, for instance they expect adding dump to their contracts and running tests would automatically log everything to the console. We should clarify the workflow in https://docs.tact-lang.org/book/debug#printing-out-debug-data

anton-trunov avatar Mar 20 '24 09:03 anton-trunov

Depends on #125 and #112. UPD: Not anymore!

novusnota avatar Mar 20 '24 17:03 novusnota

One more issue our users experience with dump: how to use it with Blueprint.

When creating a new blueprint project I don't have a default tact.config.json file. I created a file in the project root, but it doesn't work

anton-trunov avatar Mar 21 '24 18:03 anton-trunov

One more issue our users experience with dump: how to use it with Blueprint.

When creating a new blueprint project I don't have a default tact.config.json file. I created a file in the project root, but it doesn't work

Yes, the answer is simple, but undocumented yet in our docs (and tough to find in Blueprint/Sandbox):

image

https://t.me/tactlang/17040

novusnota avatar Mar 21 '24 19:03 novusnota