Author Topic: debugging options don't seem to exist.  (Read 4887 times)

jakykong

  • Guest
debugging options don't seem to exist.
« 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!

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: debugging options don't seem to exist.
« Reply #1 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. :)
Be a part of the solution, not a part of the problem.

jakykong

  • Guest
Re: debugging options don't seem to exist.
« Reply #2 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.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: debugging options don't seem to exist.
« Reply #3 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.


jakykong

  • Guest
Re: debugging options don't seem to exist.
« Reply #4 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)
« Last Edit: July 18, 2007, 07:24:58 am by jakykong »

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: debugging options don't seem to exist.
« Reply #5 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. :)
Be a part of the solution, not a part of the problem.

jakykong

  • Guest
Re: debugging options don't seem to exist.
« Reply #6 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?

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: debugging options don't seem to exist.
« Reply #7 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.
Be a part of the solution, not a part of the problem.

jakykong

  • Guest
Re: debugging options don't seem to exist.
« Reply #8 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.