Skip to main content

Questions tagged [debug]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

wanna get processed block ,but rpc do not support [duplicate]

is there any way to get block information which are in processed commitment?
yan liu's user avatar
  • 57
0 votes
1 answer
61 views

How to view msg! logs

I have msg! calls throughout my program, and have sent a transaction to invoke the program. And now I am trying to view these msg!'s. What I have tried: Solana explorer doesn't seem to show it. ...
emilebaizel's user avatar
1 vote
2 answers
71 views

block status before "processed"

Solana's API initially supports retrieving blocks in the processed state, but processed blocks already represent the state after collecting votes. Is it possible to view the timestamp after the ...
yan liu's user avatar
  • 57
1 vote
0 answers
14 views

solana blocktimestamp && block status V2.0

question before solana blocktimestamp && block status If I cannot obtain the timestamp of a block in the "processed" state through the API, is it possible to retrieve it through logs?...
yan liu's user avatar
  • 57
2 votes
1 answer
43 views

solana blocktimestamp && block status

https://docs.solana.com/implemented-proposals/validator-timestamp-oracle The same implementation can provide a timestamp estimate for a not-yet-rooted block. However, because the most recent ...
yan liu's user avatar
  • 57
1 vote
1 answer
15 views

solana locally compile config

I attempted to compile the Solana binary locally (v1.16.25) using the ./cargo build command with the added --release option, as mentioned in the documentation. However, the resulting executable does ...
yan liu's user avatar
  • 57
3 votes
1 answer
97 views

How do I get a local debugger in a running `solana-test-validator`

I'm trying to debug an issue with the Solana JSON RPC, which I can reproduce using the solana-test-validator locally. I've built the solana-labs/solana repo locally using ./cargo build. I'm able to ...
Callum M's user avatar
  • 2,920
2 votes
0 answers
227 views

Online debugger and transaction analyzer for Solana [closed]

does anyone know an online debugger and transaction analyzer for Solana, like Tenderly on Ethereum? Or others tools like transactions visualizers with detailed list of executed instructions, ...
ridousto's user avatar
3 votes
3 answers
696 views

How to log into terminal in anchor program

I'm debugging my program and I don't know where my code is dead. So is there any way to log strings and variables to the terminal?
marethyu's user avatar
  • 353
1 vote
0 answers
27 views

Debugging a program update - "from_bytes_mut>SizeMismatch"

I have a working crowdsourcing onchain program that works well, but I wanted to expand upon one aspect to add a u64. When doing so, I seem to be getting hit with a from_bytes_mut>SizeMismatch, but ...
James Marshall's user avatar
4 votes
1 answer
302 views

How to read the contents of Anchor's test-ledger directory

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 ...
Chris Rock's user avatar
1 vote
2 answers
315 views

How can I print solana error log messages in rust?

I am able to see my custom error messages (defined on chain) when I call the [anchor] program using javascript client node client.js: error: { errorCode: { code: 'MEOW', number: 6003 }, ...
coco's user avatar
  • 73
1 vote
0 answers
50 views

How do I debug a Solana program or smart contract? [closed]

Can I set breakpoints or step through a Solana program execution? Or how can I properly debug issues in a Solana program / smart contract?
DonnySolana's user avatar