Note: The Tanzu Developer Tools extension requires only one Tiltfile and workload.yaml per project. These must be single-document YAML files rather than multi-document YAML files.
Debugging requires a workload.yaml
file in your project. For information about creating a workload.yaml
file, see workload.yaml in Using Tanzu Dev Tools to Get Started.
After you have a workload.yaml
file in your project, you can debug:
Add a breakpoint in your code.
Right-click your workload.yaml
.
Select Tanzu: Java Debug Start.
Live update requires a workload.yaml
file and a Tiltfile
in your project.
For information about how to create these files, see Get set up with Snippets.
To start live update, do one of the following:
or
Tanzu: Live Update Start
command.To stop live update, do one of the following:
or
Tanzu: Live Update Stop
command.Note: When Live update stops, the application continues to run, but changes will not be present in your running application unless you redeploy it.
To deactivate live update:
Start the Command Palette (⇧⌘P).
Run the Tanzu: Live Update Disable
command.
Enter the name of the workload you want to deactivate live update for.
Note: This redeploys your workload to the cluster and removes the live update capability.
To switch the namespace that your workload is created in:
Navigate to the Nanzu settings: Preferences -> Settings -> Tanzu.
In the Namespace option, add the namespace you want to deploy to. This defaults to the default
namespace.