Skip to main content

Questions tagged [debugging]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
49 views

How to debug an extrinsic (the runtime code) after migration to wasm-only execution in Polkadot?

Polkadot is moving away from native execution mode and in the first step they removed the native execution mode. This means that the --execution Native does not work anymore which is the solution in ...
Shabgard's user avatar
1 vote
2 answers
95 views

How to debug try-runtime with the new try-runtime client?

I'm trying to attach the lldb debugger (from VS Code) to the new try-runtime client. However the breakpoints I setup inside the chain code on on_upgrade are never reached (Obliviously because they are ...
Simson's user avatar
  • 1,201
1 vote
0 answers
39 views

How to log from parachain's validate_block function

I would like to investigate and debug the way my parachain runtime's validate_block function is executing. As a first attempt I've placed some log lines in my validate_block implementation. The ...
JoshOrndorff's user avatar
  • 1,201
0 votes
0 answers
26 views

How to retrace the execution of completed XCM Transact calls?

How can someone retrace what actually happened during the execution of the Transact message? Recently the Zeitgeist parachain (2,092) sent an XCM to Polkadot that includes a Transact message that ...
sea212's user avatar
  • 549
5 votes
1 answer
118 views

Efficient debugging method with ink!

Problem I always use the following method to debug ink! However, that method is not very efficient when implementing complex contracts. Furthermore, there is a demerit that many debug statements will ...
s.Takahashi's user avatar
3 votes
3 answers
1k views

1010: Invalid Transaction: Transaction has a bad signature

I am getting this error on the block explorer "Extrinsics" tab the moment I add a debug related code into a Hello pallet into the node-template repo. E.g: #[pallet::call_index(0)] #[pallet::...
abhi3700's user avatar
  • 131
2 votes
1 answer
92 views

Why does Substrate use both Rust's Logging API crate and frame_support::log?

In the Substrate documentation here https://docs.substrate.io/test/debug/ it says we can use Rust's Logging API crate, for example as follows in a pallet: Cargo.toml [dependencies] frame-support = { ...
Luke Schoen's user avatar
  • 2,346
0 votes
0 answers
57 views

How to debug chain_spec.rs?

I was trying to have a close look at how chain_spec.rs was constructed, and wanted to output to the console for debugging purposes, but was having some trouble executing print and log::info. So, I ...
kenta_desu's user avatar
1 vote
1 answer
56 views

How to Change Colors of Node Terminal Output?

When I run a node template with cargo run -r -- --dev I get a whole bunch of debug info in the terminal. Is it possible to change colors of some words (phrases) in the terminal output? For example: ...
CREESTL's user avatar
  • 484
2 votes
2 answers
217 views

Debug corrupted on dev update

We are performing upgrade on a chain, in the dev side just to ensure all is OK we do step by step using a forked state of the live chain, we got corrupted state log which we want to debug in order to ...
Dubs's user avatar
  • 294
5 votes
1 answer
383 views

Is it possible to resurrect babe chains?

I've learned that babe chains, when all validators go offline, stalls and isn't recoverable. But my question is, from a database perspective we have the data in the chainstate folders right? So wouldn'...
Purple_Turtle's user avatar
2 votes
1 answer
46 views

What does this validator error mean? "Validator with index 0 is disabled and should not be attempting to author blocks."

So this happened when I created a new validator and injected their session keys into my node. Then I proceeded to call forceNewEra from the staking module as sudo, and I am greeted with this : ...
Purple_Turtle's user avatar
1 vote
2 answers
284 views

Are validators elected at the end of each Era or Epoch?

I am trying to debug my network, and since the epoch times are quite large (4 hours) and eras (1 day), are waiting validators considered for election at the end of an epoch or at the end of an era?
Purple_Turtle's user avatar
2 votes
0 answers
40 views

How to debug chain stalls?

As you can see in the image, our chain randomly stalled just short of jumping into the next epoch. I have no clue why. How should I go about debugging such issues?
Purple_Turtle's user avatar
3 votes
1 answer
126 views

How to debug issues regarding peering?

My cloud and local instance use the same file, my local host has telnet access to 30333 on the cloud instance, I've made sure to connect with the correct peerId, I can still see no peers form. How can ...
Purple_Turtle's user avatar
4 votes
2 answers
179 views

Debugging with a visual debugger - getting lost in WASM?

I'm trying to debug the code with a visual debugger (IntelliJ Idea, but I suspect this question applies generally). I can get the debugger to stop on break points while the runtime is initialising ...
JelliedOwl - Paul's user avatar
5 votes
1 answer
289 views

What is the best way to debug substrate?

I'm currently studying/debugging the Treasury and the Society pallets. So I keep running the cargo build --release to get my changes on a new binary. But the build takes too long (minutes) just to ...
Artur Gontijo's user avatar