# \#debug

**URL:** https://forum.canton.network/tag/debug/243.md

[Latest](https://forum.canton.network/latest.md) · [Categories](https://forum.canton.network/categories.md) · [Tags](https://forum.canton.network/tags.md)

---

## [Debug Trigger on Sandbox](https://forum.canton.network/t/debug-trigger-on-sandbox/5784)

<div class="topic-metadata">

**Author:** [@cohen.avraham](https://forum.canton.network/u/cohen.avraham)\
**Replies:** 1\
**Last updated:** [December 8, 2022, 9:28pm UTC](https://forum.canton.network/t/debug-trigger-on-sandbox/5784 "2022-12-08T21:28:07Z")

</div>

G-d willing Hello, I have 2 DAR files. The first DAR file contains all the contracts of the project. The second DAR file contains a few triggers. How can I simply debug a trigger on the sandbox, verifying that it is w…

---

## [Json-api debug messages](https://forum.canton.network/t/json-api-debug-messages/5209)

<div class="topic-metadata">

**Author:** [@VictorShneer](https://forum.canton.network/u/VictorShneer)\
**Replies:** 2\
**Last updated:** [September 12, 2022, 3:44pm UTC](https://forum.canton.network/t/json-api-debug-messages/5209 "2022-09-12T15:44:42Z")

</div>

Hi daml Community! I run sandbox with: daml sandbox --port-file ./scripts/components/canton-sandbox-port.txt --log-level-root=DEBUG --log-level-canton=DEBUG --log-level-stdout=DEBUG and then json-api with: daml json-…

---

## [How to get trace of transactions from command line?](https://forum.canton.network/t/how-to-get-trace-of-transactions-from-command-line/4850)

<div class="topic-metadata">

**Author:** [@daragao](https://forum.canton.network/u/daragao)\
**Replies:** 9\
**Last updated:** [July 25, 2022, 6:39pm UTC](https://forum.canton.network/t/how-to-get-trace-of-transactions-from-command-line/4850 "2022-07-25T18:39:13Z")

</div>

I want to be able to trace transactions without using Visual Code. Is it possible to get the same trace of transactions and tables with only the command line tools?

---

## [How can I better debug my code using logs and excecptions?](https://forum.canton.network/t/how-can-i-better-debug-my-code-using-logs-and-excecptions/4514)

<div class="topic-metadata">

**Author:** [@cohen.avraham](https://forum.canton.network/u/cohen.avraham)\
**Replies:** 4\
**Last updated:** [May 12, 2022, 2:58pm UTC](https://forum.canton.network/t/how-can-i-better-debug-my-code-using-logs-and-excecptions/4514 "2022-05-12T14:58:11Z")

</div>

G-d willing Hello guys, I would like to ask you how can I log the commands I have in a specific function? The debug and the trace cannot be used inside regular functions. Basically, my issue is that I have a very l…

---

## [Debug calls in a script - not visible in the logs](https://forum.canton.network/t/debug-calls-in-a-script-not-visible-in-the-logs/3793)

<div class="topic-metadata">

**Author:** [@gaborh](https://forum.canton.network/u/gaborh)\
**Replies:** 1\
**Last updated:** [January 26, 2022, 12:32pm UTC](https://forum.canton.network/t/debug-calls-in-a-script-not-visible-in-the-logs/3793 "2022-01-26T12:32:57Z")

</div>

I have the following code: stuff : Script () stuff = do debug "START" # do things ... debug "END" It prints the debug texts in the “Trace” section in Daml Studio but how is it that I do not see them in …

---

## [Can I override the Show instance for a template?](https://forum.canton.network/t/can-i-override-the-show-instance-for-a-template/3311)

<div class="topic-metadata">

**Author:** [@georg](https://forum.canton.network/u/georg)\
**Replies:** 1\
**Last updated:** [October 14, 2021, 12:22pm UTC](https://forum.canton.network/t/can-i-override-the-show-instance-for-a-template/3311 "2021-10-14T12:22:43Z")

</div>

I want to define a custom Show instance for my template so that I can pass it directly to debug and get pretty-printed output. Is there a way to override the default Show implementation? If not, what would a sensible wor…
