Skip to main content
Question

What is the functional difference between a watch and a trace in the Unidata debugger?

  • September 29, 2023
  • 3 replies
  • 0 views

Kevin King

Seems to me they do the exact same thing.  What's the difference?

3 replies

Kevin King
  • Author
  • Participating Frequently
  • October 31, 2023

Seems to me they do the exact same thing.  What's the difference?

No response?  Bueller?  Bueller?


Bruce Holt
  • Rocketeer
  • October 31, 2023

Seems to me they do the exact same thing.  What's the difference?

Hi Kevin!

As far as observing value changes in variables there is no functional difference. They are three methods to an end. But, in their flexibility and complexity of syntax, Break and Trace offer more of each.

From the manual: "You also can use the watch commands to display the value of variables. Watch
commands are less flexible, but are much simpler to use than breakpoint and tracepoint
commands."


Kevin King
  • Author
  • Participating Frequently
  • October 31, 2023

Seems to me they do the exact same thing.  What's the difference?

Ah, I see.  Traces can be put on a label (TG) and line (TL) and program (TP) and have conditional logic whereas watches are the Wish version.