Debugging in VS Code
Multiple launch configurations and tasks are defined for AppFlowy. These are used in the build process in order to generate needed files, clean up temporary files, and compile the source code.
A launch configuration is what is used when you type
Ctrl-F5to launch the application.
You can select your preferred launch configuration by going to the
Run and Debugtab in VS Code.
Launch configurations are defined in the
Tasks are be launched manually (although you are free to keybind them locally). You can see a list of all tasks available by initiating the command palette (
Ctrl-Shift-P) and then typing "run task".
Inititiate the command palette with Ctrl-Shift-P
You can now type "AF:" to see a list of all AppFlowy provided tasks. Click on the desired task to trigger it.
The AppFlowy tasks
We recommend binding the
Alt-T key combination to the "Tasks: Run Task" command. This is done by initiating the command palette (Ctrl-Shift-P) and then typing "
Open Keyboard Shortcuts".
Ctrl-Shift-Bwill trigger the default build task. We have configured
AF: Code Genas the default build task.
In order to make them easy to identify, all AppFlowy defined tasks are prefixed with "AF: "
Tasks are defined in the