Project Management
Overview
Clicknium project encapsulates Python automation files to guarantee the automation scripts have the same result in developing, debugging, execution and distribution.
Create Project
In Visual Studio Code, press Ctrl+Shift+P
to show the Command Palette, input or select Clicknium: Create Project
, and then select a folder where the project is stored according to the pop-up window.
When the project is created, a pop-up window in the lower right corner shows the general project initialization information, and the output panel shows details. After initialization, the current Python virtual environment can be seen when you open app.py.
Run/Debug Project
Run the project
In Visual Studio Code, press "Ctrl+Shift+P" to show the Command Palette, input or select Clicknium: Run Project
. The Clicknium extension will deploy and run the project based on clicknium.yaml.
Debug the project
Basics
In Visual Studio Code, set a breakpoint to the code where you want to pause,
press Ctrl+Shift+P
to show the Command Palette, input or select Clicknium: Debug Project
. The Clicknium extension will start project debugging with debug buttons shown at the top of Visual Studio Code.
Action | Shortcut |
---|---|
Continue | F5 |
Pause | F6 |
Step over | F10 |
Step in | F11 |
Step out | Shift + F11 |
Restart | Ctrl+Shift+F5 |
Stop | Shift + F5 |
Monitor Variables
In the upper left corner of Visual Studio Code, you can see the variables is debugging the running values.
Debug Console
In Visual Studio Code, open the debug console by "View -> Debug Console."
Project Package
In Visual Studio Code, press Ctrl+Shift+P
to show the Command Palette, input or select Clicknium: Package Project
, then select the path to save the executable file.
The detailed package log Output displays in the Output in Visual Studio Code.
Once the package is finished, the saving folder will be opened to show the target executable file.
If you want to replace the Exe icon, replace the logo.ico file in the project file.