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?