Article 5FXZ3 Trying to debug a program using DDD/GDB that requires Sudo to run

Trying to debug a program using DDD/GDB that requires Sudo to run

by
Senitar
from LinuxQuestions.org on (#5FXZ3)
Hi,

I am a linux novice. I have a Raspberry Pi 4 purchased from CanaKit. The program I have created requires Sudo to run since it attempts to change the scheduler for a threat that it spawns. When I tried to debug it using DDD I get a privilege violation since it seems GDB does not start the program as Sudo. After searching the web for hours, I have not found anything that explains how to get DDD to do this.

Any help will be greatly appreciated

Joelatest?d=yIl2AUoC8zA latest?i=nmdBpkjVLOk:CXP5yHaLMrc:F7zBnMy latest?i=nmdBpkjVLOk:CXP5yHaLMrc:V_sGLiP latest?d=qj6IDK7rITs latest?i=nmdBpkjVLOk:CXP5yHaLMrc:gIN9vFwnmdBpkjVLOk
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments