Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: alonmuroch on June 17, 2014, 07:19:52 AM



Title: Debugging and general workspace configuration
Post by: alonmuroch on June 17, 2014, 07:19:52 AM
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 ?


Title: Re: Debugging and general workspace configuration
Post by: alonmuroch on June 17, 2014, 02:22:00 PM
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