News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

debugging options don't seem to exist.

Started by jakykong, July 16, 2007, 08:52:18 AM

Previous topic - Next topic

jakykong

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!

Biplab

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. :)
Be a part of the solution, not a part of the problem.

jakykong

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.

Pecan

Quote from: 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.

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


jakykong

#4
I know where it's supposed to be. It's not there.

ftp://jakykong.homelinux.com/snapshot1.png (anonymous ftp)

Biplab

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. :)
Be a part of the solution, not a part of the problem.

jakykong

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?

Biplab

Quote from: jakykong on July 18, 2007, 07:42:21 PM
What else must be done to activate a debugging session?

Add some break points and start the debugger.
Be a part of the solution, not a part of the problem.

jakykong

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.