I'm new to Anchor and Solana program development. I've done some reading on debugging Solana programs running in local by using solana-test-validator
and solana logs
.
However, I noticed when I'm running unit tests with Anchor that it tries to fire up a new validator in my local and so anchor test
cannot be run (on the same port) while I have a validator running.
Naturally, I shut down my validator when I'm running these tests but that also means I'm no longer running solana logs
.
I noticed that Anchor outputs a directory:
.anchor/test-ledger
I'd like to better understand how this folder works.
Does it contain the output I would otherwise be getting by running solana logs
?
What other important information does it contain that Solana program developers commonly use for debugging?
More generally, would anyone be able to provide an overview of the folder's contents? I have attached a screenshot of this test-ledger directory for reference.