Bitcoin Forum
November 05, 2024, 09:24:16 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Debugging and general workspace configuration  (Read 379 times)
alonmuroch (OP)
Member
**
Offline Offline

Activity: 74
Merit: 13


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 ?
alonmuroch (OP)
Member
**
Offline Offline

Activity: 74
Merit: 13


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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!