Author Topic: I wanna watch you!  (Read 7403 times)

Offline smallB

  • Almost regular
  • **
  • Posts: 193
I wanna watch you!
« on: October 30, 2011, 04:36:40 pm »
Guys, I think that being able to chose variables for watch before I actually start debugging would be a good idea. This would allow me select them in "peace and quiet" before the whole process of debugging starts. Also in view of the fact that I can actually have watch window active while not debugging also suggests that this window can be utilized at that particular moment.
Thanks.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: I wanna watch you!
« Reply #1 on: October 31, 2011, 10:37:37 am »
Try the debugger's branch...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline smallB

  • Almost regular
  • **
  • Posts: 193
Re: I wanna watch you!
« Reply #2 on: October 31, 2011, 11:29:33 am »
I have the debugger branch.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: I wanna watch you!
« Reply #3 on: October 31, 2011, 11:30:57 am »
So what is the problem?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline smallB

  • Almost regular
  • **
  • Posts: 193
Re: I wanna watch you!
« Reply #4 on: October 31, 2011, 11:33:26 am »
The problem is that I cannot select variable for watching while not  debugging at this moment.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: I wanna watch you!
« Reply #5 on: October 31, 2011, 12:30:56 pm »
You can, just click on the empty line in the watches window and type.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline smallB

  • Almost regular
  • **
  • Posts: 193
Re: I wanna watch you!
« Reply #6 on: October 31, 2011, 02:41:47 pm »
@Obfuscated fantastic! Thanks.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: I wanna watch you!
« Reply #7 on: October 31, 2011, 05:05:24 pm »
Generally this reply applies to all your posts:
Could you please instead of opening another new topic over an over again use one thread only to post your suggestions? Otherwise they really tend to get lost. Call it "SmallB's suggestions" and collect them all in one post numbering them.

Edit: BTW: The next logical step would than be "SmallB's patches". We had it that way in the past and it worked great.
« Last Edit: October 31, 2011, 05:07:55 pm by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline smallB

  • Almost regular
  • **
  • Posts: 193
Re: I wanna watch you!
« Reply #8 on: October 31, 2011, 05:11:53 pm »
@Morten yes, that is what I'll do. Thank you for your suggestion. Can't promise patches at that moment (just don't know enough yet) but with time I'll do my best.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: I wanna watch you!
« Reply #9 on: November 01, 2011, 06:52:33 am »
You can, just click on the empty line in the watches window and type.
Adding a watch variable from the context menu even we are not debugging should be a "feature request" :D
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: I wanna watch you!
« Reply #10 on: November 01, 2011, 08:57:29 am »
Won't happen:)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline smallB

  • Almost regular
  • **
  • Posts: 193
Re: I wanna watch you!
« Reply #11 on: November 01, 2011, 10:31:00 am »
Why, is there something unreasonable about it?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: I wanna watch you!
« Reply #12 on: November 01, 2011, 10:39:33 am »
The context menu is full of useful features and thus it is becoming hard to use.
I don't want to clutter it even more.

BTW: you can drag and drop your selection in the watches window.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline smallB

  • Almost regular
  • **
  • Posts: 193
Re: I wanna watch you!
« Reply #13 on: November 01, 2011, 11:07:31 am »
@Obfuscated that is really great! (D&D)