'Source trail' that can visualize the source code for free & easily, it seems to be useful for large-scale development and understanding of legacy code



Software that provides high-performance and secure services is very much appreciated by users. However, the development of such software tends to be complicated and the amount of source code tends to increase. ' Sourcetrail ' is free open source software that visualizes the dependencies in the source code, such as 'how functions and variables are related', which is important for large-scale development, in an easy-to-understand graph.

Sourcetrail --The open-source cross-platform source explorer

https://www.sourcetrail.com/

As modern software continues to become more sophisticated, the amount of code handled by developers has increased significantly. From this trend, a ' microservice architecture ' that can divide services for each function and simplify management for each service has emerged, but there are also ' monolithic ' systems that consist of a single multifunctional service. Exists.

The amount and complexity of code handled by developers has increased more than 100 times in the last 10 years-GIGAZINE



Complex source code is difficult to understand the whole relationship just by reading. With Sourcetrail, it is possible to visualize the dependencies of functions and variables in code written in C, C ++, Java, and Python in a graph. Sourcetrail was originally provided as a commercial license by the developer

Coati Software, but was open sourced in 2019.

Source code search engine 'Sourcetrail' OSS, released on GitHub: CodeZine
https://codezine.jp/article/detail/11826



You can see how to use Sourcetrail by watching the official movie below.

Sourcetrail --Introduction --YouTube


First, start Sourcetrail and load the project.



The source code is indexed. In addition, it seems that

it may take time to create an index if the code base is large.



After indexing, the categories of objects to display are displayed.



For example, in the Functions category, you can visualize function dependencies.



You can search for objects by entering keywords in the search window on the upper left.



Functions are displayed in orange, variables are displayed in blue, and classes are displayed in gray.



It also visualizes class relationships so that you can see them at a glance.



Sourcetrail the

Visual Studio Code you will be able to display are prepared plug-in for, functions and classes that were selected on Visual Studio Code in Sourcetrail.

sourcetrail --Visual Studio Marketplace
https://marketplace.visualstudio.com/items?itemName=astallinger.sourcetrail



Other source code visualization tools include Understand and SysClinic . However, all of them are paid, so the convenience of being able to use them for free is one of the strengths of Sourcetrail.

in Software,   Video, Posted by darkhorse_log