Q: How can I attach a debugger to a standalone wrapper
A:
  1. change the
    #undef STOCHASTIC_SO_ATTACH_DDD /* sleep for a few seconds to attach ddd */
    in Stochastic.h to
    #def STOCHASTIC_SO_ATTACH_DDD /* sleep for a few seconds to attach ddd */
    and recompile/reinstall LAL.
  2. Start up ddd on the executable wrapperAPI
  3. mpirun the DSO
  4. It will sleep for 10 seconds and display the PID; attach ddd to this PID. (It's a good idea to work out where the pull-down menu to do this is first ;-))



Back to LDAS FAQ