User forums > Help

What is the console for raspberry and how to set "sudo"

(1/3) > >>

typicalc:
I have two questions that I have not found an answer:

1) When I launch a program in debugging mode I get an error "Can't launch console ..". I am using Raspberry Pi 3.
How do I set the right terminal in Codeblocks? I tried several options at Settings->General Settings->"Terminal to launch programs" to no avail.

My second question:

2) When launching a program how do I set "root" capabilities (I'm twiddling the GPIO), ie. how do I lauch it using "sudo ./myprogramname" etc.

oBFusCATed:
1. Do you have the terminals listed in the UI installed on the system?
2. I don't think you can at the moment.

typicalc:
The Rasberry "Rasbian" (of Debian) terminal program is "LXTerminal"
I tried what was availabe and tried entering LXTerminal also but still no luck.

Is debugging really out of the questing when I need root permission? Any workarounds?

oBFusCATed:
Probably attaching to a running process, but I'n not sure if non-root users are allowed to do it either.

Another option is starting gdbserver as root using remote debugging in cb. I've not tried it and I'm not sure if it will work.

ariebonn:
I've been running C::B from terminal using "sudo codeblocks" to work around the root issue. Maybe that will help you?

Navigation

[0] Message Index

[#] Next page

Go to full version