How to use logpoints in DVT IDE for VS Code

Overview

In DVT you can efficiently perform interactive debugging, for example during the UVM Runtime Elaboration.

This video demonstrates how to inject debug printouts at runtime without altering the code.

This video was made using DVT 25.1.10.

Details

Introduction

Logpoints enable you to inject debug printouts at runtime without altering the code. This can prove particularly useful when you want to print debug messages from read-only code, or you want to easily toggle particular debug messages on and off at any time during execution.

Using logpoints

To quickly add a logpoint, right click on the editor vertical bar and select Add logpoint.

Inside the text area, you can type any string that you would use in a print function like $display.

In the expression, you can use any variable or function visible at this point in code. Content assist is available, just press CTRL + Space to see the proposals.

Notice that the messages were printed in the console and execution did not suspend when the logpoint was reached.

A disabled logpoint does not print anything.