Debugger

Discuss anything else that does not suite other forums.

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 182
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany
Has thanked: 17 times
Been thanked: 21 times

Debugger

Post by AUGE_OHR » Wed Oct 30, 2019 2:55 am

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 16 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 :?:

User avatar
AUGE_OHR
Posts: 182
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany
Has thanked: 17 times
Been thanked: 21 times

Post by AUGE_OHR » Wed Oct 30, 2019 11:30 am

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 :?:

User avatar
AUGE_OHR
Posts: 182
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany
Has thanked: 17 times
Been thanked: 21 times

Post by AUGE_OHR » Fri Nov 01, 2019 1:17 am

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

User avatar
AUGE_OHR
Posts: 182
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany
Has thanked: 17 times
Been thanked: 21 times

Post by AUGE_OHR » Fri Nov 01, 2019 5:47 am

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 21 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

User avatar
vagblad
Posts: 123
Joined: Tue Jun 18, 2013 12:18 pm
DBs Used: MySQL,DBF
Location: Thessaloniki, Greece
Has thanked: 17 times
Been thanked: 23 times

Post by vagblad » Wed Nov 06, 2019 9:55 am

Thank you.
Vagelis Prodromidis
Email: vagblad@gmail.com, Skype: vagblad

User avatar
quartz565
Posts: 566
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Has thanked: 175 times
Been thanked: 20 times
Contact:

Post by quartz565 » Wed Nov 06, 2019 10:43 am

Thank you !
Best Regards,
Nikos.

os: Windows Server 2012 - 64
hw: HP Server E5606, 2.13GHz, 8.00 GB - Intel Xeon CPU

User avatar
Steed
Posts: 386
Joined: Sat Dec 12, 2009 3:40 pm
Has thanked: 2 times
Been thanked: 2 times

Post by Steed » Thu Nov 07, 2019 6:47 pm

thanks

Post Reply