Author Topic: sudo before starting debugger  (Read 3709 times)

Offline rbrettjuergens

  • Single posting newcomer
  • *
  • Posts: 3
sudo before starting debugger
« on: May 16, 2011, 04:05:17 pm »
I'm working on an application using libtrace.  The application needs to be run as root to access the network interface.  I've tried switching the environment variables to sudo /bin/sh -c and a few other arrangements with sudo in them.  The application works on the command line but I need to trace through the application to see why some variables are not producing what I'm expecting.

Is there a way to switch to root for debugging without starting Code::Block as root?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: sudo before starting debugger
« Reply #1 on: May 16, 2011, 07:36:22 pm »

Offline rbrettjuergens

  • Single posting newcomer
  • *
  • Posts: 3
Re: sudo before starting debugger
« Reply #2 on: May 16, 2011, 09:46:25 pm »