Debugger

Discuss anything else that does not suite other forums.

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Debugger

Post 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 226 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 :?:
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: Debugger

Post 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 :?:
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: Debugger

Post 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
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: Debugger

Post 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 234 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
have fun
Jimmy
User avatar
vagblad
Posts: 160
Joined: Tue Jun 18, 2013 12:18 pm
DBs Used: MySQL,DBF
Location: Thessaloniki, Greece

Re: Debugger

Post by vagblad »

Thank you.
Vagelis Prodromidis
Email: vagblad@gmail.com, Skype: vagblad
User avatar
quartz565
Posts: 667
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Contact:

Re: Debugger

Post by quartz565 »

Thank you !
Best Regards,
Nikos.

os: Windows Server 2019 - 64
User avatar
Steed
Posts: 427
Joined: Sat Dec 12, 2009 3:40 pm

Re: Debugger

Post by Steed »

thanks
Post Reply