User forums > Using Code::Blocks
breakpoints not working
Jenna:
--- Quote from: bootstrap on January 17, 2009, 01:25:44 pm ---I noticed that "somehow" a couple of my .h header and .cpp source files were owned by "root" instead of my username. I am not sure how that happened, but apparently I launched CodeBlocks from a root terminal window before the session that had problems.
For your information... for future reference when people have similar problems... I did a few quick tests and found that breakpoints do not work (for me anyway) if any of the files in the project belong to anyone except the user who launched CodeBlocks. I find this a bit strange, especially in the case where the root super-user launches CodeBlocks, but cannot get breakpoints to work because some of the files do not belong to "root"!!!
--- End quote ---
I can set breakpoints as root in files not belonging me, and as no-root user in root's files, without any problems.
About the other problem, wrong ownership and/or access rights: which version of C::B do you use ?
bootstrap:
I have the 20080228 binary build. I guess my Linux skills and expertise are just too rusty, because repeated attempts to install the most recent "nightly build" failed. I found supposedly complete instructions a couple places, but could not make them work. I did notice, however, they are pretty old instructions that refer to previous versions of ubuntu... and mine isn't even the most recent (mine is ubuntu 8.04).
Which raises a question, can us wimps get perhaps 2 to 4 binary builds per year (or even one)? Or is the policy "hey fools, learn how to install the nightly builds and stop complaining?". If so, maybe I can find someone with ubuntu 8.04 to lead me through real slow and careful like. Any takers? Just don't expect me to know anything about installing deb packages!
Jenna:
There was a bug leading to wrong file-permissions fixed in svn r5104 (the 8.02 release is older) that may also cause the wrong user used for a saved file.
If you use ubuntu, you should be able to use my repo (see signature) via synaptic, or whatever (apt-based) package-manager you prefer.
There are also repos especially build for ubuntu, just look in the actual threads anouncing the new nightlies in the Nightly builds forum .
Navigation
[0] Message Index
[*] Previous page
Go to full version