Automated Instrumentation READMEThe Automated Instrumentation Extension for VS Code enhances the development process by automating the instrumentation of Python programs. This extension enables easy integration of code coverage analysis, variable tracing, and function call graph generation into your Python projects. It automatically tracks the execution flow, collects valuable runtime information, and generates detailed reports, making it easier for developers to identify untested code paths, debug issues, and optimize performance. With this extension, you can improve both the quality and efficiency of your development workflow. FeaturesThe Automated Instrumentation Extension offers the following key features to enhance your Python development workflow: Setup Code Analysis Prepares the environment by downloading all necessary dependencies and scripts to set up the automated instrumentation process. This command ensures everything is ready for code analysis, enabling you to focus on your development without worrying about setup. Trace Variables Tracks and records the values of variables as the program executes, capturing data changes throughout runtime. This provides real-time insights into variable states, helping identify unexpected behavior or bugs. Create Call Graph Constructs a dynamic function call graph by tracing caller-callee relationships. This visual representation of function interactions can assist with understanding the execution flow and optimizing the structure of your code. Analyze Code Coverage Monitors and reports which lines of code are executed during the program's execution. The command identifies unexecuted paths, providing visibility into areas of the code that may need further testing. Generate Tracing Statements Automatically injects tracing logs into the code to capture function calls and their parameters during execution. This helps in tracking the flow of the program and debugging issues by providing detailed traces of runtime activity. RequirementsTo use the Automated Instrumentation Extension, the following dependencies are required:
InstructionsFollow these steps to install and set up the Automated Instrumentation Extension in Visual Studio Code:
Search for Automated Instrumentation Extension and click Install.
Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on macOS). Search for and select the command: Automated Instrumentation: Setup Environment. The extension will now set up the virtual environment. You will see a notification once the setup is complete. Important: Wait for the "Virtual environment setup complete!" notification before proceeding. Do not proceed with any further actions until this notification appears.
|