Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

CLang CC Plugin: Do not show (or move) popup when debugging

(1/2) > >>

BlueHazzard:
Hi,
i like the new CC plugin a lot, just one thing that botters ma a lot:
When debugging a program and the "show variable under cursor" setting is enabled, the popup of cc does override the debugger popup, so it is not usefull anymore.
I tried to add a setting to disable the popup while debugging, but i am not really successfull... Any ideas how this could be implemented?

A premium solution would of course be to move the cc popup to a place where the debugger popup is not visible, to have both popups... Or give the debugger popup priority...

Pecan:

--- Quote from: BlueHazzard on February 19, 2023, 11:34:30 pm ---Hi,
i like the new CC plugin a lot, just one thing that botters ma a lot:
When debugging a program and the "show variable under cursor" setting is enabled, the popup of cc does override the debugger popup, so it is not usefull anymore.
I tried to add a setting to disable the popup while debugging, but i am not really successfull... Any ideas how this could be implemented?

A premium solution would of course be to move the cc popup to a place where the debugger popup is not visible, to have both popups... Or give the debugger popup priority...

--- End quote ---

Please provide a set of steps to reproduce this problem.
Thanks

Miguel Gimenez:
THe original plugin had the same problem, IMHO CC tooltips should be disabled while debugging.

BlueHazzard:
1) tick in  Settings->GDB/CDB debugger->Default->Evaluate expression under cursor
2) Create a project with this source for example:

--- Code: ---#include <iostream>

using namespace std;


struct test {

    int a;
    double b;

};


int main()
{
    cout << "Hello world!" << endl;

    test t;

    t.a = 1;
    t.b = 1.1;

    cout << t.a << endl << t.b << endl;

    return 0;
}

--- End code ---
3) place a breakpoint in the line before return.
4) Start debugging
5) Hover with the mouse over one t element
6) The popup of cc and dbg will kick in an overriede each other.
With this example it is quite hard to reproduce, because cc is probably to fast. I have attached a screenshot for example.

ollydbg:
We have discussed this issue many years ago in our forum, but at that time, we don't have solutions.

My idea is that we can put the two tips(either from CC or from Debugger) in the two places. Because when debugging, I still need CC information. Maybe, a fixed panel to show the CC tips when debugging.  :)

Navigation

[0] Message Index

[#] Next page

Go to full version