# CASE: use debug mode

**URL:** https://community.silverfin.com/t/case-use-debug-mode/1591
**Category:** Cases
**Tags:** debug
**Created:** [October 22, 2019, 8:13am UTC](https://community.silverfin.com/t/case-use-debug-mode/1591 "2019-10-22T08:13:49Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)
#### Post date: [October 22, 2019, 8:13am UTC](https://community.silverfin.com/t/case-use-debug-mode/1591/1 "2019-10-22T08:13:49Z")

</div>

On company level, you can use the `debug mode` for any account or reconciliation template. This is greatly beneficial in order to have more detailled info on what a template is doing, without having to dive into the code without seeing the output (on firm level, you’ll never see that).

**How to activate?**

When you are on company level within the page that show the output of the template (account or reconciliation, so when you are viewing the details of those), simply add `?debug=1` at the end of the URL, and press ENTER.

Like this eg:  
 ![Screen Shot 2020-05-04 at 09.52.03](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/0/036311fd057f80db996f8ab65635bfb7ac26d11b.png)

After pressing ENTER, a new section will be loaded right beneath the details of the template, looking like this:

 ![Screen Shot 2020-05-04 at 09.45.38](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/0/006ab5a54a27cead43218b7624c78cd74d729c41.png)

There’s some new info we added in here, in particular the flame graphs!

Let’s see what we got:

A: information on the template, and where it is linked at on firm level. You this link guides you to firm level where the template is maintenanced.  
 ![Screen Shot 2020-05-04 at 09.58.15](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/5/5344640eff50b9166a3a381fc2cf9f305d4f6882.png)  
The mother level is only applicable for templates that come from the Silverfin Marketplace, mind you. So if you built custom templates on firm level, you’ll only see the Firm level link.

B: this is the amount that has an impact on the reconciliation of a template.  
 ![Screen Shot 2020-05-04 at 10.01.29](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/9/9927bc3b5e9fbbf8639af3621c765f06844e0e1e.png)

C: these are all the result tags that are made in the template.  
 ![Screen Shot 2020-05-04 at 10.06.39](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/0/04a04dee8f810bc17b543249adb676ef56f48acc.png)  
This is actually great, as you don’t have to dive into the code looking for variables which you need to refer to in other templates 💡

D: this show you if a certain input isn’t filled with information while it is needed (see the required case [here](https://community.silverfin.com/t/case-make-an-input-required/1680))  
 ![Screen Shot 2020-05-04 at 10.10.33](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/f/fd7097bff70fa36ca34fd0e1fd2f99b35889871f.png)

E: this overviews which inputs all can be filled with details through the Import reconciliation data function:  
 ![Screen Shot 2020-05-04 at 10.13.22](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/d/d19b0c85e7a80051cffde26710264706989c4649.png)

Here’s an example:  
 ![Screen Shot 2020-05-04 at 10.13.42](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/d/d8b15ab069fc78128b1fd18b9cece66474ffc8e9.png)  
It shows you the name of the inputs, with the placeholder that is used in the Import reconciliation data screen.

F: the text properties is technical information on what inputs holds which information (basically, it holds the information on what makes the details of a template)  
 ![Screen Shot 2020-05-04 at 10.15.30](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/d/d1bc45d453796e2f64240131929b0172424f1819.png)

G: this will give you an overview of all used [translation tags](https://community.silverfin.com/t/case-how-to-translate-templates-for-use-in-other-language-fr-en/185)  
 ![Screen Shot 2020-05-04 at 10.18.38](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/8/8a34fad40f09b2b810d64c7c812330a9474faa62.png)

H: if you use certain [roll forward logic](https://community.silverfin.com/t/case-rollforward-copy-amounts-into-other-objects-from-one-year-to-the-next-year/1158), it’ll be displayed here in a handy overview. Great to check when copying details isn’t working as the way you expect it to be  
 ![Screen Shot 2020-05-04 at 10.20.11](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/5/572a6505ebfec214b743ba3a181052729a8a989e.png)

I: the dependencies will show you what impacts the details of the template. That can be account ranges from account collections, certain results that are used from other templates, the ledgers of an account (the booking lines, or the total of it), …

 ![Screen Shot 2020-05-04 at 10.23.04](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/1/171c90dd78d020f753da226a4c61cc01173e2df1.png)

J: flame graphs 🔥  
 ![Screen Shot 2020-05-04 at 10.25.03](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/7/7133c6f389eac9347bf0c85551ce56ba1e5c4325.png)  
This was added currently, and is a great way on investigating if eg. your template would be slow to load.

You can hover over a block (which presents a certain coding function, eg. the start of a fori-loop), and show you on how many time it takes to complete the code in mili-seconds.

You can click on the block you need to investigate (each block shows the line number of where the code starts), and all the blocks beneath it are parts of your selected block (so all sub-blocks will have a total of mili-seconds that equal the amount of time of your selected block).  
 ![Screen Shot 2020-05-04 at 10.30.00](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/b/bd3976d69503eb1036473f08ec1054f9ade9a965.png)

To go back, just click on any block above your selected block to go to another block (or just click on `template` to go to the complete overview).

This is a great way on not only to see how many time it takes for your template to load, but also to optimise where needed, and make your template even render faster! 💪

TIP: to save you time typing out `?debug=1` in the URL, you can also create a bookmark in your browser of choice (Chrome eg), with the following Java-script:

```auto
javascript:void((function(){var locHasAnchor = location.href.split('#').length > 1 ? true : false; var loc = locHasAnchor ? location.href.split('#')[0] : location.href; var anchor = locHasAnchor ? '#' + location.href.split('#')[1] : '';if (loc.indexOf('debug') >= 0) return; loc.indexOf("?") < 0 ? (location.href = loc+"?debug=1"+anchor) : (location.href = loc+"&debug=1"+anchor);})());

```

This creates a bookmark you just click on whenever you want to debug a Silverfin template; it’ll automatically add the needed settings into your URL 💡

---

<div class="post-metadata">

### Author: ![ronald\_groot\_RSF](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/ronald_groot_rsf/32/1019_2.png) [@ronald\_groot\_RSF](https://community.silverfin.com/u/ronald_groot_RSF)
#### Post date: [October 22, 2019, 8:34am UTC](https://community.silverfin.com/t/case-use-debug-mode/1591/2 "2019-10-22T08:34:52Z")

</div>

This is awesome! This will help a lot in debugging, thank you for sharing @sven!

---

<div class="post-metadata">

### Author: ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)
#### Post date: [May 4, 2020, 8:37am UTC](https://community.silverfin.com/t/case-use-debug-mode/1591/3 "2020-05-04T08:37:16Z")

</div>

FYI all, added some more detail to the case and our newly added flame graphs function! 🔥

---

<div class="post-metadata">

### Author: ![Wsteppe](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/wsteppe/32/1350_2.png) [@Wsteppe](https://community.silverfin.com/u/Wsteppe)
#### Post date: [May 5, 2020, 12:58pm UTC](https://community.silverfin.com/t/case-use-debug-mode/1591/4 "2020-05-05T12:58:08Z")

</div>

This is awesome. Why isn’t it in the dev docs though? An overview of the debug functionality and how to activate it (or even just a reference to this post) should be mentioned in capital letters right at the start of the developer docs!

Happy that I stumbled upon this post, but would’ve also been nice some weeks ago 🙂

---

<div class="post-metadata">

### Author: ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)
#### Post date: [May 7, 2020, 12:39pm UTC](https://community.silverfin.com/t/case-use-debug-mode/1591/5 "2020-05-07T12:39:52Z")

</div>

Hello @Wsteppe,

We have to agree with you. Unfortunately (as you have noticed), we maintain 2 different things here (developer site and the community), and there is an overlap in which we need to become better on communicating to you future developers. Sorry 'bout that.

Just know we are aware of this, and we hope to bring change in this into the near future.

Thanks for your honest feedback 💪

---

<div class="post-metadata">

### Author: ![Peter](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@Peter](https://community.silverfin.com/u/Peter)
#### Post date: [May 26, 2020, 8:07am UTC](https://community.silverfin.com/t/case-use-debug-mode/1591/6 "2020-05-26T08:07:40Z")

</div>

I’ve used this for some time and that worked fine, but since last week this doesn’t work anymore. So when I put “?debug=1” at the end, nothing is showing. I’ve asked a colleague of me and he doesn’t see it also. (so it’s not my PC). Is there something else why this shouldn’t work anymore?

---

<div class="post-metadata">

### Author: ![Julie\_Vandekerckhove](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/julie_vandekerckhove/32/1071_2.png) [@Julie\_Vandekerckhove](https://community.silverfin.com/u/Julie_Vandekerckhove)
#### Post date: [May 26, 2020, 8:46am UTC](https://community.silverfin.com/t/case-use-debug-mode/1591/7 "2020-05-26T08:46:51Z")

</div>

I have the same problem

---

<div class="post-metadata">

### Author: ![Peter](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@Peter](https://community.silverfin.com/u/Peter)
#### Post date: [June 4, 2020, 12:37pm UTC](https://community.silverfin.com/t/case-use-debug-mode/1591/8 "2020-06-04T12:37:06Z")

</div>

Hi, is there anyone who knows what the problem could be?

---

<div class="post-metadata">

### Author: ![borjaGonzalez](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/borjagonzalez/32/825_2.png) [@borjaGonzalez](https://community.silverfin.com/u/borjaGonzalez)
#### Post date: [June 4, 2020, 12:43pm UTC](https://community.silverfin.com/t/case-use-debug-mode/1591/9 "2020-06-04T12:43:31Z")

</div>

Hi Peter,

Try adding **&debug=1** at the end of the url instead and let us know if it works.

Best,  
Borja

---

<div class="post-metadata">

### Author: ![Peter](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@Peter](https://community.silverfin.com/u/Peter)
#### Post date: [June 4, 2020, 1:10pm UTC](https://community.silverfin.com/t/case-use-debug-mode/1591/10 "2020-06-04T13:10:02Z")

</div>

Hi Borja,

No, **&debug=1** instead of **?debug=1** also doesn’t work. It"s strange because it has work before on the PC I’m currently working on and also Julie had this problem, so it should not a problem of my PC.

---

<div class="post-metadata">

### Author: ![borjaGonzalez](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/borjagonzalez/32/825_2.png) [@borjaGonzalez](https://community.silverfin.com/u/borjaGonzalez)
#### Post date: [June 4, 2020, 1:34pm UTC](https://community.silverfin.com/t/case-use-debug-mode/1591/11 "2020-06-04T13:34:05Z")

</div>

Hi Peter,

I have been investigating and it seems that the debug mode does not work in templates that are part of a paying package in Silverfin. We will give you an update if this changes in the future.

In the meantime if there is anything we can help you with regarding a specific issue please let us know.

Best,  
Borja

---

<div class="post-metadata">

### Author: ![Peter](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@Peter](https://community.silverfin.com/u/Peter)
#### Post date: [June 4, 2020, 1:35pm UTC](https://community.silverfin.com/t/case-use-debug-mode/1591/12 "2020-06-04T13:35:39Z")

</div>

Ok, thanks Borja, that has changed then, because it did work a few weeks ago.

---

<div class="post-metadata">

### Author: ![Julie\_Vandekerckhove](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/julie_vandekerckhove/32/1071_2.png) [@Julie\_Vandekerckhove](https://community.silverfin.com/u/Julie_Vandekerckhove)
#### Post date: [June 8, 2020, 7:50am UTC](https://community.silverfin.com/t/case-use-debug-mode/1591/13 "2020-06-08T07:50:46Z")

</div>

Now some of my calculations are useless because you changed some result tags and I have no way of finding the correct tags.  
Is there anyway we can still get this information? ☹

---

<div class="post-metadata">

### Author: ![Laurent\_Bonny1](https://avatars.discourse-cdn.com/v4/letter/l/d78d45/32.png) [@Laurent\_Bonny1](https://community.silverfin.com/u/Laurent_Bonny1)
#### Post date: [June 8, 2020, 3:26pm UTC](https://community.silverfin.com/t/case-use-debug-mode/1591/14 "2020-06-08T15:26:30Z")

</div>

Hi Julie,

It is possible to create a template containing an (automatically generated) overview of all result tags within each template.

Please refer to the following case which we created for this purpose:

> [@CASE: create overview of all result tags with their value](https://community.silverfin.com/t/case-create-overview-of-all-result-tags-with-their-value/798):
>
> More and more, we’ll want to link to certain results from other templates. Of course, one should know the name of the handle which needs to be referred to, as well the name of the result-tag. However, we can make a template that does just that: an overview of all templates with their used handle, and the name and value of the result tags. {% for item in period.reconciliations %} {% if item.handle != blank %} {::font size="l"}\*\*{% linkto period.reconciliations.[item.handle] %}{{ item.name }}{…

Creating such a template will grant you a way to stay up to date with all result tags (which, unfortunately, may sometimes change due to a necessary update).

Please let us me know if you have any questions about this.

Regards,

Laurent

---

<div class="post-metadata">

### Author: ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)
#### Post date: [October 6, 2020, 2:13pm UTC](https://community.silverfin.com/t/case-use-debug-mode/1591/15 "2020-10-06T14:13:10Z")

</div>

We’ve added a new section into the debug pane, called the Dependencies tree. All info can be found here:

> [@CASE: use the Dependencies tree in the debug pane](https://community.silverfin.com/t/case-use-the-dependencies-tree-in-the-debug-pane/1931):
>
> We’ve added a new section into our debug pane of a template, called the Dependencies tree. It’s a double-sided tree graph, representing both the forward and backward dependencies of the template you are debugging. The template you are debugging, is the root of it all, sitting in the middle of the tree. left -------| | | root | | |------- right On the left, you’ll see the templates in which our current template depends on (using their results for example). …

---

<div class="post-metadata">

### Author: ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)
#### Post date: [October 1, 2021, 6:30am UTC](https://community.silverfin.com/t/case-use-debug-mode/1591/16 "2021-10-01T06:30:16Z")

</div>

TIP: to save you time typing out `?debug=1` in the URL, you can also create a bookmark in your browser of choice (Chrome eg), with the following Java-script:

```auto
javascript:void((function(){var locHasAnchor = location.href.split('#').length > 1 ? true : false; var loc = locHasAnchor ? location.href.split('#')[0] : location.href; var anchor = locHasAnchor ? '#' + location.href.split('#')[1] : '';if (loc.indexOf('debug') >= 0) return; loc.indexOf("?") < 0 ? (location.href = loc+"?debug=1"+anchor) : (location.href = loc+"&debug=1"+anchor);})());

```

![Screen Shot 2021-10-01 at 08.29.39](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/2/2deed2bad32f43dcf1206aff6c6064057e196b97.png)

This creates a bookmark you just click on whenever you want to debug a Silverfin template; it’ll automatically add the needed settings into your URL 💡

---

<div class="post-metadata">

### Author: ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)
#### Post date: [November 15, 2021, 1:33pm UTC](https://community.silverfin.com/t/case-use-debug-mode/1591/17 "2021-11-15T13:33:09Z")

</div>

We’ve added a new section to the debug pane, in which a check is performed on which version the template is running on company level and firm level.

Whenever there is a difference, a warning will be shown now:

 ![additional_warning](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/7/78edf91ea681e180196d5e1d297e5b695a98cc25.png)

This might become useful for debugging **just to be sure you are debugging the latest code (firm code) with the output of the template on company level**.

An example could be if the company has his period locked, blocking all future updates of that template on firm level being executed on company level:

 ![update_info](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/8/85ffd24b89821fb73f81d1afbba94c6b571ba360.png)

---

<div class="post-metadata">

### Author: ![Warde](https://avatars.discourse-cdn.com/v4/letter/w/5f9b8f/32.png) [@Warde](https://community.silverfin.com/u/Warde)
#### Post date: [December 8, 2021, 6:47am UTC](https://community.silverfin.com/t/case-use-debug-mode/1591/18 "2021-12-08T06:47:16Z")

</div>

Hi Sven, adding “?debug=1” does not work for me…?

This link does not generate any debug mode for instance:  
[https://live.getsilverfin.com/f/106/reconciliation\_texts/2622684/edit?debug=1](https://live.getsilverfin.com/f/106/reconciliation_texts/2622684/edit?debug=1)

How should I use this please?

Gr. Ward

---

<div class="post-metadata">

### Author: ![robindeclercq](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/robindeclercq/32/472_2.png) [@robindeclercq](https://community.silverfin.com/u/robindeclercq)
#### Post date: [December 8, 2021, 9:54am UTC](https://community.silverfin.com/t/case-use-debug-mode/1591/19 "2021-12-08T09:54:39Z")

</div>

Hi @Warde ,

Debug mode only shows template details on company level. The URL you provided is a link to the template on firm level.

So you’ll have to access a template in a specific company and and `?debug=1` to the URL in there. That should work fine. If not, please reach out.

Thanks! 🙂

Kind regards  
Robin

---

<div class="post-metadata">

### Author: ![Warde](https://avatars.discourse-cdn.com/v4/letter/w/5f9b8f/32.png) [@Warde](https://community.silverfin.com/u/Warde)
#### Post date: [December 8, 2021, 10:10am UTC](https://community.silverfin.com/t/case-use-debug-mode/1591/20 "2021-12-08T10:10:00Z")

</div>

Ok, tx Robin, but what is the difference between company and firm level please?

[Next page](https://community.silverfin.com/t/case-use-debug-mode/1591.md?page=2)
