Title: Debug bitcoin core on Ubuntu Post by: maplelake on March 04, 2020, 01:41:11 PM 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 ? Title: Re: Debug bitcoin core on Ubuntu Post by: jackg on March 04, 2020, 01:56:46 PM 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? Title: Re: Debug bitcoin core on Ubuntu Post by: darosior on March 04, 2020, 02:05:27 PM 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`. Title: Re: Debug bitcoin core on Ubuntu Post by: maplelake on March 05, 2020, 12:36:25 AM Quote Do you need to debug it? yes, just reading code is not enough.you have to hand on by debuggingTitle: Re: Debug bitcoin core on Ubuntu Post by: maplelake on March 05, 2020, 12:39:23 AM Because I'd like to create something on bitcoin. but i do not know what it is ..
hmmm, sounds funny ? actually it is . |