Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: jakykong on July 16, 2007, 08:52:18 am

Title: debugging options don't seem to exist.
Post by: jakykong on July 16, 2007, 08:52:18 am
Hi!
According to http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks, i need to find a "watch <varname>" option, on the right-click menu after clicking on a variable name (last instruction). This option, however, doesn't appear to exist. If i right-click a variable, "toggle breakpoint" appears as mentioned on the same page, but not "watch <varname>".

I'm using Linux (debian), compiled from svn 4261 (it's from wednesday, 7/15), with g++ 4.1 and gdb 6.4.

I'm not certain if this is a bug in the latest svn source; but my instinct tells me nobody's been removing menu options lately... :?

Thanks for any help you can provide!
Title: Re: debugging options don't seem to exist.
Post by: Biplab on July 16, 2007, 09:57:55 am
I can see it exists. You may try it in a longer way. Please left-click at the variable name so that the current cursor position becomes adjacent to the variable. Now do a right-click. You should get the options. :)
Title: Re: debugging options don't seem to exist.
Post by: jakykong on July 17, 2007, 08:09:34 am
I tried with the cursor adjacent to the left, right, and right smack in the middle of the variable before right-clicking. I also tried selecting the variable before right-clicking.

So far, the menu item hasn't shown up.
Title: Re: debugging options don't seem to exist.
Post by: Pecan on July 17, 2007, 12:58:36 pm
I tried with the cursor adjacent to the left, right, and right smack in the middle of the variable before right-clicking. I also tried selecting the variable before right-clicking.

So far, the menu item hasn't shown up.

Note the "watch 'shiftKeyIsDown'" entry in the context menu.

(http://img442.imageshack.us/img442/900/193yo5.png)
Title: Re: debugging options don't seem to exist.
Post by: jakykong on July 18, 2007, 07:05:42 am
I know where it's supposed to be. It's not there.

ftp://jakykong.homelinux.com/snapshot1.png (anonymous ftp)
Title: Re: debugging options don't seem to exist.
Post by: Biplab on July 18, 2007, 08:39:07 am
There is a difference between the pictures you submitted and Pecan posted. From your picture I can see that no debugging session is active.

A debugging session must be active to get those menu options. :)
Title: Re: debugging options don't seem to exist.
Post by: jakykong on July 18, 2007, 07:42:21 pm
I did every step from the wiki page (the watches window is open; just behind the main window).

What else must be done to activate a debugging session?
Title: Re: debugging options don't seem to exist.
Post by: Biplab on July 18, 2007, 07:57:44 pm
What else must be done to activate a debugging session?

Add some break points and start the debugger.
Title: Re: debugging options don't seem to exist.
Post by: jakykong on July 18, 2007, 10:02:18 pm
Hm... that's not mentioned in the wiki article (at least, not before trying to add watches). Perhaps I should make it clearer?

Solved one problem -- the "Watch 'n'" shows up now.

Now another problem has shown up.

the debugger output complains it can't find a symbol file (I already verified that 'strip symbols from binary' is off, 'produce debugging output' is on, and I rebuilt the debug target.)

Specifically,
"No symbol table is loaded. Use the File command"
There is a menu option (debug -> add symbol file), but there appear to be no symbol files whatsoever in the project folder.