简体   繁体   中英

Something wrong with my gdb or KDevelop IDE?

I have Ubuntu 9.04 and KDevelop IDE.
When I am trying to debug C++ console app, it tells me:
GDB cannot use the tty* or pty* devices. Check the settings on /dev/tty* and /dev/pty* As root you may need to "chmod ug+rw" tty* and pty* devices and/or add the user to the tty group using "usermod -G tty username".
I installed gcc and gdb, and project compiles OK. Do you have any suggestions? (My apologizes if it is a noobie question)

Have you tried what is being suggested? It seems that you have a permission or a group configuration issue on the character device gdb is trying to use to write things back to you.

Here's what to do:

  • If you know the root password of your system, issue the following commands at a terminal/shell prompt:

    su -

    you will be asked to enter the root password

    chmod ug+rw /dev/tty*

    exit

  • If you know what a sudoer is and if you are one, issue the following command:

    sudo chmod ug+rw /dev/tty*

Then try debug your program again.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM