![]() ![]() See how it is connected to other code and Web Service endpoints.View how it's connected to other calls in the Trace, then backtrack to its calling component and open its source file.Start with a SQL command of interest - like an INSERT.Let's say you want to know what code modifies data in the database. Drill down the execution details of code and SQL in the execution Trace.Ġ1:45 Or, you can use a bottom-up approach.Navigate to sources of classes and functions directly from the diagrams so you don't have to look for them manually.Start with the big picture of your software design and view all code components in the Dependency Map - Web Service endpoints, Java packages/classes/functions and SQL commands and their inter-dependencies.Select an AppMap from the list of all AppMaps found in the project folders, or search for an AppMap with a specific phrase in its name, for example "create owner".ĭouble click on an AppMap in the list, an interactive diagram viewer opens.Ġ1:25 Discover how the Pet Clinic application works in the AppMap diagrams. Or, press CTRL or COMMAND + SHIFT + A, then type "AppMaps" in the search box and pick the `AppMaps View" from the list. Here is an example for the Pet Clinic application that is used in this demo:Įnter fullscreen mode Exit fullscreen modeĠ1:10 When you run the Maven test phase, the AppMap recording agent will record AppMaps from the tests and save them in the $buildDir/appmap folder of the project, one AppMap per each recorded test case.Ġ1:17 Open the AppMaps view - click on the AppMaps tab in the UI. You should add all the Java packages of your project. The AppMap framework uses a file called appmap.yml to determine which code to map.Ġ0:20 Create a new file appmap.yml in the root folder of your project. When the IDE restarts, the AppMap plugin is installed and ready for viewing AppMaps.Ĭonfigure AppMap for the Pet Clinic recording Click on the Install button, then click on Restart IDE.Select Plugins, click on the Marketplace tab and search for AppMap.The Pet Clinic project uses JUnit tests, which will be a source of AppMaps in this demo.Ġ0:12 Installing AppMap from the JetBrains Marketplace takes only a moment: A good way to create AppMaps is by recording unit, functional or integration test cases. Here are the step-by-step instructions that are demonstrated in the video, or you can follow the Quickstart for IntelliJ written instructions.ĪppMap works by recording code execution paths of your app and visualizing them in interactive diagrams directly in your code editor. It uses the Spring Pet Clinic as an example program. This 2 ¹/₂ minute video shows how to install the AppMap plugin, how to configure it to map your Java code, and how to navigate your code using the interactive diagrams. It does this by automatically generating interactive maps of architecture and code behavior right in your editor. AppMap is an open source IntelliJ IDEA plugin which helps you improve your code by showing you how it behaves, feature by feature, as you work. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |