Skip to content

Latest commit

 

History

History
68 lines (36 loc) · 2.26 KB

usage-iterating-on-app.md

File metadata and controls

68 lines (36 loc) · 2.26 KB

Using Tanzu Dev Tools to iterate on your workload

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.

Debug your workload

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:

  1. Add a breakpoint in your code.

  2. Right-click your workload.yaml.

  3. Select Tanzu: Java Debug Start.

Live update your workload

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.

Starting Live Update

To start live update, do one of the following:

  • Right-click your project's Tiltfile and select Tanzu: Live Update Start.

or

  • Start the Command Palette (⇧⌘P) and run the Tanzu: Live Update Start command.

Stopping Live Update

To stop live update, do one of the following:

  • Right-click your project's Tiltfile and select Tanzu: Live Update Stop.

or

  • Start the Command Palette (⇧⌘P) and run the 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.

Deactivate Live Update

To deactivate live update:

  1. Start the Command Palette (⇧⌘P).

  2. Run the Tanzu: Live Update Disable command.

  3. 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.

Switch a namespace

To switch the namespace that your workload is created in:

  1. Navigate to the Nanzu settings: Preferences -> Settings -> Tanzu.

  2. In the Namespace option, add the namespace you want to deploy to. This defaults to the default namespace.