User forums > Using Code::Blocks
Debugging - Watch - Keyboard shortcut
Léa Massiot:
Hello and thank you for reading my post.
Every time I want to watch a new variable, I have to:
1) select the variable,
2) right-click,
3) scroll top,
4) click "Watch <variable_name>".
Is there any keyboard shortcut which would allow me to:
1) select the variable I want to watch
2) and then compose the keyboard shortcut to have it watched?
Thank you for your help and best regards.
Jenna:
If you use a recent version of C::B you can select the variable you want to watch and drag it into the watches window.
oBFusCATed:
I'm adding it to my TODO. Thank you for the request.
Léa Massiot:
--- Quote from: jens on November 15, 2012, 09:33:25 pm ---If you use a recent version of C::B you can select the variable you want to watch and drag it into the watches window.
--- End quote ---
Indeed, it works for me, thank you.
--- Quote from: oBFusCATed on November 15, 2012, 09:35:05 pm ---I'm adding it to my TODO. Thank you for the request.
--- End quote ---
:)
Thank you and best regards.
cbuser2:
--- Quote from: jens on November 15, 2012, 09:33:25 pm ---If you use a recent version of C::B you can select the variable you want to watch and drag it into the watches window.
--- End quote ---
Very quick and easy. This instruction should be added to the debug wiki(nightlies section).
Right now the wiki has:
--- Code: ---Click in the empty last row in the watches window, type the name of the variable (or full expression) and hit enter.
--- End code ---
Which meant that I was doing a lot of typing of variable names in the watches window(up to 15 variables or more), and this was error-prone for long variable names. I couldn't find a way of auto-completing variable names in the watches window - I don't think that this is actually an option?
Navigation
[0] Message Index
[#] Next page
Go to full version