# How to debug? (doc is outdated)

**URL:** <https://gramps.discourse.group/t/how-to-debug-doc-is-outdated/2539>\
**Category:** Development\
**Created:** [June 23, 2022, 9:01am UTC](https://gramps.discourse.group/t/how-to-debug-doc-is-outdated/2539 "2022-06-23T09:01:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![oliber](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/oliber/32/1696_2.png) [@oliber](https://gramps.discourse.group/u/oliber)\
**Post date:** [June 23, 2022, 9:01am UTC](https://gramps.discourse.group/t/how-to-debug-doc-is-outdated/2539/1 "2022-06-23T09:01:08Z")

</div>

Hi!

I’m trying to put my hands at plug-in development but I’m stuck right at the beginning… and the [wiki page about debugging](https://www.gramps-project.org/wiki/index.php/Debugging_Gramps) is outdated since there’s no Gramps.py anymore that you could just start with python.

But let’s be very concrete. I’d like to play a bit with graphical trees so I started with copying [gramps/plugins/drawreport/](https://github.com/gramps-project/gramps/tree/master/gramps/plugins/drawreport) to my local plugins directory and started playing with [fanchart.py](https://github.com/gramps-project/gramps/blob/master/gramps/plugins/drawreport/fanchart.py).  
First problem I’d like to solve is I’m missing the _overhang_ option in the plugin settings. It might be a language problem (my system is in French, so is Gramps) but I couldn’t figure out how to change Gramps language. I also thought I could check what’s in the “circle” option list when firing up the window but no idea how to do this… With my basic scripting skills I’d just do a print but obviously that doesn’t work here 😉

So if you could direct me into these basics I’d be very grateful!

(I’m on Ubuntu 22.04)

---

<div class="post-metadata">

**Author:** ![daleathan](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/daleathan/32/1701_2.png) [@daleathan](https://gramps.discourse.group/u/daleathan)\
**Post date:** [June 23, 2022, 9:09am UTC](https://gramps.discourse.group/t/how-to-debug-doc-is-outdated/2539/2 "2022-06-23T09:09:06Z")

</div>

> [@oliber](#):
>
> and the [wiki page about debugging](https://www.gramps-project.org/wiki/index.php/Debugging_Gramps) is outdated since there’s no Gramps.py anymore that you could just start with python.

I believe the page is not outdated as [Gramps.py](https://github.com/gramps-project/gramps/blob/master/Gramps.py) does exist, the only issue is the page is targeted at developers who are using a development environment with Gramps, not an installed version of Gramps which I guess you are using? If so see the [developers portal](https://www.gramps-project.org/wiki/index.php/Portal:Developers) about setting up a [Gramps development](https://www.gramps-project.org/wiki/index.php/Getting_started_with_Gramps_development) environment.

---

<div class="post-metadata">

**Author:** ![oliber](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/oliber/32/1696_2.png) [@oliber](https://gramps.discourse.group/u/oliber)\
**Post date:** [June 23, 2022, 9:51am UTC](https://gramps.discourse.group/t/how-to-debug-doc-is-outdated/2539/3 "2022-06-23T09:51:01Z")

</div>

Thanks a lot!

This indeed helped 🙂

Still no way to change the language but in the development version I could just delete the `build/mo` directory to go back to english.

And the missing ‘overhang’ was just missing from 5.1 while I have copied it from 5.2 so now I have to figure out where to separate “my” plugin from the original one…

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [June 23, 2022, 9:59am UTC](https://gramps.discourse.group/t/how-to-debug-doc-is-outdated/2539/4 "2022-06-23T09:59:33Z")

</div>

There was a Fan Chart patch in the 5.2 report master for overhangs. I’ll try to locate it in the morning when I’m not trying to fall back asleep. [Pull 133 : Fanchart overhang](https://github.com/gramps-project/gramps/pull/1133)

The overhangs don’t play nice with the chart label. (It overlaps.) So it still needs some tweaking.

And there have previously been recommendations to set up batch files to override the language. (I’m on Windoze so I can just use the GrampsPortable fork. It is a little easier to swap language in that variant.)

---

<div class="post-metadata">

**Author:** ![oliber](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/oliber/32/1696_2.png) [@oliber](https://gramps.discourse.group/u/oliber)\
**Post date:** [June 23, 2022, 11:09am UTC](https://gramps.discourse.group/t/how-to-debug-doc-is-outdated/2539/5 "2022-06-23T11:09:25Z")

</div>

> [@emyoulation](#):
>
> The overhangs don’t play nice with the chart label. (It overlaps.) So it still needs some tweaking.

Indeed. And I wonder what’s the point of the “Orientation of radial texts” option… Who would like text to be written upside down on half of the chart?  
The French translation for it is misleading as it translates “upright” with “straight” and “roundabout” with “curved”… which would make much more sense but isn’t the actual functionality…

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [June 23, 2022, 4:13pm UTC](https://gramps.discourse.group/t/how-to-debug-doc-is-outdated/2539/6 "2022-06-23T16:13:47Z")

</div>

You might want to take a look at what @cdhorn is doing with the Configuration Templates for his experimental [CardView](https://github.com/cdhorn/CardView) view modes too.

I’m sure that you are aware that there are a variety of Fan Charts in Gramps. Each has separate settings. If one adopted the CardView’s ability to save and load a Configuration Template of settings, each of the others could be adapted to read the same template. So the Color Settings that you experiment with using the interactive Charts category [Fan Chart view mode](https://gramps-project.org/wiki/index.php/Gramps_5.1_Wiki_Manual_-_Categories#Fan_Chart_View) might be applied to the [Fan Chart Graphical Report](https://gramps-project.org/wiki/index.php/Gramps_5.1_Wiki_Manual_-_Reports_-_part_4#Fan_Chart) or the [Fan Chart Gramplet](https://gramps-project.org/wiki/index.php/Gramps_5.1_Wiki_Manual_-_Gramplets#Fan_Chart) . Although each might have a different take on using the Configurations. (Like the Graphical Report might have 3 levels of Color use: B&W, full color, and 2 ink-saving.)

A few [Fan Chart options](https://www.familysearch.org/en/blog/genealogy-fan-chart) from Family Search:

 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/9/97a03ea8926334e265fb0206857587c76d866ea6.jpeg)

 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/2/246a9a0514d812b32f3bd20c9c4f7efacbf0ea18.jpeg)

 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/d/dddf034113127add32e3b2a8b5c6cf982f70e993.jpeg)

Graphical Reports options:

 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/d/d432e007bb293cd81a6109400233f43d3f1a91c4.png)

Chart View configuration options:  
 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/a/a7b0a65cf17e2aeee79cb524546dad4dabbc1d7b.png)

---

<div class="post-metadata">

**Author:** ![ennoborg](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/ennoborg/32/4659_2.png) [@ennoborg](https://gramps.discourse.group/u/ennoborg)\
**Post date:** [June 27, 2022, 12:47pm UTC](https://gramps.discourse.group/t/how-to-debug-doc-is-outdated/2539/7 "2022-06-27T12:47:08Z")

</div>

Changing the language is simple. Just add a LANG=en\_US.UTF-8 command before the command that starts Gramps.

Have you considered using Visual Studio Code for debugging?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/gramps/original/1X/2ac1e712b7adf612e31ca08a55419f4cf37c0158.png) [@system](https://gramps.discourse.group/u/system)\
**Post date:** [July 27, 2022, 12:47pm UTC](https://gramps.discourse.group/t/how-to-debug-doc-is-outdated/2539/8 "2022-07-27T12:47:10Z")

</div>

Closed on July 27, 2022, 12:47pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
