Page 1 of 1

Debugger

Posted: Wed Oct 30, 2019 2:55 am
by AUGE_OHR
hi,

i have Problem with Debugger on Tab "Variables" ... it crash often.

to be more exact : ONKEYPRESS make Problem with GRID
when have many Variables i have to wait until it is "stable", else when move Mouse it crash.
HbIde_Error.ZIP
(4.2 KiB) Downloaded 231 times
---

does GRID use LVS_OWNERDATA / LVN_GETDISPINFO :?:

i had that Problem with my own native Control.
it was the LVN_KEYDOWN Event where "quick" Keystoke crash.

---

i saw c:\hmg.3.4.4\SOURCE\Debugger\

will this Source include when re-build HMG LIB :?:

---

Question : how to debug Thread :?:

Re: Debugger

Posted: Wed Oct 30, 2019 11:30 am
by AUGE_OHR
hi,

have modify c:\hmg.3.4.4\SOURCE\Debugger\DBGHB.PRG

Code: Select all

CLASS HMGDebugger
METHOD GetNextValidStopLineEx( cFileName, nLine )
   METHOD GUIDoEvents()                         // here New
   VAR bGUIDoEvents            INIT {|| NIL }   // this code block is initiali
*   METHOD GUIDoEvents()             INLINE   EVAL( ::bGUIDoEvents ) // do crash often when using many Events
i have disable INLINE and wrote a "normal" Method with Errorblock

Code: Select all

METHOD GUIDoEvents() CLASS HMGDebugger
LOCAL bOldError
   bOldError := Errorblock( {||Break()} )
   BEGIN SEQUENCE
      EVAL( ::bGUIDoEvents )   // here safe
   END SEQUENCE
   Errorblock( bOldError )
RETURN Self
now it seems me more stable :D

p.s. run c:\hmg.3.4.4\BuildLib32.bat to rebuild HMG LIB

---

to "open" a Member VAR Window i have to use K_RETURN

Question : how to use Double-Click on Grid Item :?:

Re: Debugger

Posted: Fri Nov 01, 2019 1:17 am
by AUGE_OHR
hi,

i have found "ON DBLCLICK" in c:\hmg.3.4.4\INCLUDE\i_grid.ch

so i have modify 2 Procedure in DBGGUI.PRG

Code: Select all

PROCEDURE ProcInitGUIDebugger( lCreate )
         @ 0,0 BUTTON Button_Refresh CAPTION "Refresh" PI
                  @ 0,0 GRID &cGrid_SourceCode;
                     ON DBLCLICK OnKeyPress( VK_RETURN );
               @ 0,0 GRID Grid_CallStack;
                  ON DBLCLICK OnKeyPress( VK_RETURN );
               @ 0,0 GRID Grid_Watch;
                  ON DBLCLICK OnKeyPress( VK_RETURN );
               @ 0,0 GRID Grid_Calc;
                  ON DBLCLICK OnKeyPress( VK_RETURN );
               @ 0,0 GRID Grid_Vars;
                  ON DBLCLICK OnKeyPress( VK_RETURN );
               @ 0,0 GRID Grid_Areas;
                  ON DBLCLICK OnKeyPress( VK_RETURN );
               @ 0,0 GRID Grid_Rec;
                  ON DBLCLICK OnKeyPress( VK_RETURN );

PROCEDURE DisplayVars ( cVarName, xVarValue, aColor )
         @ nHEIGHT() , nWIDTH() GRID &cGridName;
            ON DBLCLICK OnKeyPress_DisplayVars( VK_RETURN, cFormName, cGridName, xVarValue, aObjRawValue, aColor ) ;
now a DblClick work same as VK_RETURN

have fun

Re: Debugger

Posted: Fri Nov 01, 2019 5:47 am
by AUGE_OHR
hi,

have work with it and it seems stable so i can upload it
! Note : make a Backup FIRST !
HMG_Debugger_1.zip
(23.88 KiB) Downloaded 238 times
copy both files to c:\hmg.3.4.4\SOURCE\Debugger\
rebuild HMG Lib with c:\hmg.3.4.4\BuildLib32.bat

have fun

Re: Debugger

Posted: Wed Nov 06, 2019 9:55 am
by vagblad
Thank you.

Re: Debugger

Posted: Wed Nov 06, 2019 10:43 am
by quartz565
Thank you !

Re: Debugger

Posted: Thu Nov 07, 2019 6:47 pm
by Steed
thanks