Bitcoin Forum
September 27, 2018, 11:24:06 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Debugging and general workspace configuration  (Read 346 times)
alonmuroch
Member
**
Offline Offline

Activity: 72
Merit: 10


View Profile
June 17, 2014, 07:19:52 AM
 #1

Hi everyone,
I've been working on the code for some time now, also made some pull requests (some of them got merged).
I'm having some problems debugging the code. I'm working with eclipse on OSX Mavericks, building the project works great but when i go to debugging prospective i'm having some problems:
  • Many breakpoint cannot be installed
  • Some breakpoints that can be installed cause a source not found error
  • Cannot debug header files

A specific example is when i'm trying to debug step-by-step some of the unit tests, i can't seem to be able to step in functions.
I did: ./configure --with-miniupnpc --enable-upnp-default --with-qrencode --enable-debug so to  include debugging flags.

Anyone care to share how he setup his workspace or how to resolve those problems ?
1538090646
Hero Member
*
Offline Offline

Posts: 1538090646

View Profile Personal Message (Offline)

Ignore
1538090646
Reply with quote  #2

1538090646
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1538090646
Hero Member
*
Offline Offline

Posts: 1538090646

View Profile Personal Message (Offline)

Ignore
1538090646
Reply with quote  #2

1538090646
Report to moderator
1538090646
Hero Member
*
Offline Offline

Posts: 1538090646

View Profile Personal Message (Offline)

Ignore
1538090646
Reply with quote  #2

1538090646
Report to moderator
1538090646
Hero Member
*
Offline Offline

Posts: 1538090646

View Profile Personal Message (Offline)

Ignore
1538090646
Reply with quote  #2

1538090646
Report to moderator
alonmuroch
Member
**
Offline Offline

Activity: 72
Merit: 10


View Profile
June 17, 2014, 02:22:00 PM
 #2

Those are the compiler flags for the unit test build
CXXFLAGS = -g3 -O0 -DDEBUG -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter  -Wstack-protector -fstack-protector-all -fPIE
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!