Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Miner1969 on December 23, 2017, 09:24:47 PM



Title: Debugging Bitcoin/Litecoin on QT Creator? Is this possible?
Post by: Miner1969 on December 23, 2017, 09:24:47 PM
I would of posted this on this thread but in their wisdom the mods have locked it (which IMO it shouldnt be as it a useful thread supporting older versions of BTC/LTC).
https://bitcointalk.org/index.php?topic=149479.0

Anyway Ive built various versions of Bitcoin up to the latest on Linux (Ubuntu) and Windows.
Ive also tried litecoin various version up to the latest (all version after 10 litecoin-qt crash on startup. Ive tried QT 4.87, 5.3.2, 5.5.1 all fail on V10, also ming 4.8.2 and 4.9.2. When i download the precompiled installer it works fine. This is an issue with QT as all the daemons run ok.
So im at a dead end at the moment as i want to run QT gui on a later version.
My question is is there a version that i can run up in QT Creator in debug mode after v10 using the latest make system so i can look at litecoin 10/bitcoin 10 and above?
So i can step around in the code and investigate my crash. Does QT Creator/debugger integrate with the configure/make setup that was created after v0.86.
I can debug up to v 0.86 (as they have a .pro file and i run using qmake, make and i can build it from creator etc).
Has bitcoin litecoin been written without any interactive debugging, im sure im missing something obvious, but how are the devs actually debugging the code, i dont see any documentation on how to set this up anywhere on all the bitcoin/litecoin or google.
Thanks in advance.
Miner1969.


Title: Re: Debugging Bitcoin/Litecoin on QT Creator? Is this possible?
Post by: achow101 on December 23, 2017, 09:46:42 PM
The developers of Bitcoin Core (which Litecoin Core routinely rebases onto and thus instructions for recent versions of Core also apply to Litecoin) use the Linux command line and GDB to debug. Very few developers use an IDE or GUI for any sort of work. It is all mostly done with text editors and GDB from the command line.


Title: Re: Debugging Bitcoin/Litecoin on QT Creator? Is this possible?
Post by: Andre_Goldman on December 23, 2017, 10:07:13 PM
do they have a proper gcc compiler?


Title: Re: Debugging Bitcoin/Litecoin on QT Creator? Is this possible?
Post by: Miner1969 on December 24, 2017, 12:32:23 PM
Are there any lists of what actual versions of QT compile and work on what OS / Compiler?
It seems like pot luck to me. And so far ive been unlucky.
I wouldnt mind if i could acually get a version of litecoin after 10 that ive compiled to actually run.