Author

Topic: Debug bitcoin core on Ubuntu (Read 153 times)

jr. member
Activity: 47
Merit: 8
March 04, 2020, 07:39:23 PM
#5
Because I'd like to create something on bitcoin. but i do not know what it is ..
hmmm, sounds funny ? actually it is .
jr. member
Activity: 47
Merit: 8
March 04, 2020, 07:36:25 PM
#4
Quote
Do you need to debug it?
yes, just reading code is not enough.you have to hand on by debugging
sr. member
Activity: 279
Merit: 435
March 04, 2020, 09:05:27 AM
#3
Hi,

any way to improve it ?

You should enable the compiler debugging flags with `--enable-debug`. You can list the configuration flags with `configure --help`.
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
March 04, 2020, 08:56:46 AM
#2
Do you need to debug it? I just compiled the binaries and ran it from there imo...

I'm guessing gdb is going to use an interface between itself and gcc and gcc is known for needing a lot of memory, how much do you have avaliable?
jr. member
Activity: 47
Merit: 8
March 04, 2020, 08:41:11 AM
#1
1. Build bitcoin core with steps by build-unix.md.
2. Debug it with gdb. I like to layout view of code/debug. So i use the following cmd
          cmd:  gdb -tui
3. for "n" , the ip often jumps unexpected back and forth

Is it caused by some optimization compile? it is a little annoying ...

any way to improve it ?
Jump to: