Author Topic: [solved]debugger pop-up doesn't fit on screen  (Read 8715 times)

Filipe

  • Guest
Re: [solved]debugger pop-up doesn't fit on screen
« Reply #15 on: July 29, 2017, 11:13:50 pm »
Here are some structures if you want to check how this works.

typedef struct client_static_s
{
    int a;
    int b;
    int c;
    int d;
    int e;
    int f;
    int g;
    int h;
    int i;
    int k;
    int l;
    int m;
    int n;
    int o;
    int p;
    int q;
    int r;
    int s;
    int t;
    int u;
    int v;
    int w;
    int x;
    int y;
    int z;
    int a1;
    int b1;
    int c1;
    int d1;
    int e1;
    int f1;
    int g1;
    int h1;
    int i1;
    int k1;
    int l1;
    int m1;
    int n1;
    int o1;
    int p1;
    int q1;
    int r1;
    int s1;
    int t1;
    int u1;
    int v1;
    int w1;
    int x1;
    int y1;
    int z1;
        int a2;
    int b2;
    int c2;
    int d2;
    int e2;
    int f2;
    int g2;
    int h2;
    int i2;
    int k2;
    int l2;
    int m2;
    int n2;
    int o2;
    int p2;
    int q2;
    int r2;
    int s2;
    int t2;
    int u2;
    int v2;
    int w2;
    int x2;
    int y2;
    int z2;
        int a3;
    int b3;
    int c3;
    int d3;
    int e3;
    int f3;
    int g3;
    int h3;
    int i3;
    int k3;
    int l3;
    int m3;
    int n3;
    int o3;
    int p3;
    int q3;
    int r3;
    int s3;
    int t3;
    int u3;
    int v3;
    int w3;
    int x3;
    int y3;
    int z3;
        int a4;
    int b4;
    int c4;
    int d4;
    int e4;
    int f4;
    int g4;
    int h4;
    int i4;
    int k4;
    int l4;
    int m4;
    int n4;
    int o4;
    int p4;
    int q4;
    int r4;
    int s4;
    int t4;
    int u4;
    int v4;
    int w4;
    int x4;
    int y4;
    int z4;
}
client_static_t;

typedef struct small_client_static_s
{
    int a;
    int b;
    int c;
    int d;
    int e;
    int f;
    int g;
    int h;
    int i;
    int k;
    int l;
    int m;
    int n;
    int o;
    int p;
    int q;
    int r;
    int s;
    int t;
    int u;
    int v;
    int w;
    int x;
    int y;
    int z;
}
small_client_static_t;

client_static_t   cls;

small_client_static_t scls;

No need to use 2 structures, data to declare the same variables is not give difficult to realize that the statements of the second structures are contained in the first and the typedef is not applied correctly

  First sequence     >>  a,   b,   c,   d,  e,   f,   g,   h,  i,   k,   l,   m,   n,  o,   p,   q,   r,   s,   t,  u,   v,   w,   x,   y,  z;
  Second sequence >>  1, 2, 3 , 4;


« Last Edit: July 29, 2017, 11:18:35 pm by Filipe »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: [solved]debugger pop-up doesn't fit on screen
« Reply #16 on: July 29, 2017, 11:27:27 pm »
Filipe: This is probably some sample code to exaggerate 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 visir

  • Multiple posting newcomer
  • *
  • Posts: 76
Re: [solved]debugger pop-up doesn't fit on screen
« Reply #17 on: July 30, 2017, 08:54:34 am »
Yep, to test the ValueTooltip. "exaggerate the problem", can you care less? It made it unusable.

Anyway, anyone knows how to get position and size of main window? Something like main_window->GetScreenRect()

Right now, scrolling with mouse wheel scrolls window behind ValueTooltip, not ValueTooltip itself. Kinda annoying, but I can live with it.

Offline visir

  • Multiple posting newcomer
  • *
  • Posts: 76
Re: [solved]debugger pop-up doesn't fit on screen
« Reply #18 on: July 30, 2017, 09:00:54 am »
Also, shouldn't there be type info in the third column? It's only displayed for structure itself.


Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: [solved]debugger pop-up doesn't fit on screen
« Reply #19 on: July 30, 2017, 11:51:28 am »
You can enable full debugger loging:
Settings->Debugger->Enable ful log

An look if the debugger sends the type information from single elements (in the debugger log tab). If this is the case then there seems to be a bug.

Thank you for your investigative work!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: [solved]debugger pop-up doesn't fit on screen
« Reply #20 on: July 30, 2017, 01:25:55 pm »
No, it doesn't. The type is available for the main object. For the rest we need gdb/mi as always.
(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!]