C. Ross
C. Ross

Reputation: 31868

Print multiple variables with one command in jdb

How can I print multiple local primitives with one command in jdb (verison 1.4)?

I've tried:

print v1, v2, v3

but that only prints out the value of v1.

Any suggestions?

Edit: Effectively I need a watch in jdb.

Upvotes: 1

Views: 6957

Answers (1)

Paul Wagland
Paul Wagland

Reputation: 29149

Does the following do what you want?

print "" + v1 + " " + v2 + " " + v3

Upvotes: 3

Related Questions