debugar em meia tela no xHarbour

Projeto [x]Harbour - Compilador de código aberto compatível com o Clipper.

Moderador: Moderadores

porter
Usuário Nível 5
Usuário Nível 5
Mensagens: 1057
Registrado em: 10 Dez 2009 16:44
Localização: OLIMPIA-SP

debugar em meia tela no xHarbour

Mensagem por porter »

olá pessoal, gostaria de saber se tem como debugar em meia tela, estou compilando no xHarbour da seguinte forma:

CLS
DEL *.C
C:\xHarbour\BIN\XBuild LOJA.EXE.XBP -DEBUG -CLASSIC -B -ALL

xHarbour, windows.

obrigado.
Avatar do usuário
Itamar M. Lins Jr.
Administrador
Administrador
Mensagens: 7929
Registrado em: 30 Mai 2007 11:31
Localização: Ilheus Bahia
Curtiu: 1 vez

debugar em meia tela no xHarbour

Mensagem por Itamar M. Lins Jr. »

Ola!
Porter mostra a tela desse debugador do xHarbour ai...
Qual é a versão do xHarbour é pagar ?

Saudações,
Itamar M. Lins Jr.
Saudações,
Itamar M. Lins Jr.
porter
Usuário Nível 5
Usuário Nível 5
Mensagens: 1057
Registrado em: 10 Dez 2009 16:44
Localização: OLIMPIA-SP

debugar em meia tela no xHarbour

Mensagem por porter »

ola Itamar, a versão do xHarbour não aparece na hora da compilação, mas acho que é 1.2.1 + Hwgui 2.17

a tela do Debugador, não estou conseguindo copiar aqui para te mostrar, eu teclo Ald + D e o debugador abre com a tela inteira, eu quero que mostre em meia tela, uma parte o debugador e a outra parte mostra o sistema sendo executado, se der para fazer em meia tela, ajuda bastante na hora de depurar o sistema.

o cabeçalho do debugador é assim:
File Locate View Run Point Monitor Options Window Help
alxsts
Colaborador
Colaborador
Mensagens: 3092
Registrado em: 12 Ago 2008 15:50
Localização: São Paulo-SP-Brasil

debugar em meia tela no xHarbour

Mensagem por alxsts »

Olá!

Isto funciona bem no debugger do Clipper mas não foi portado para xHarbour e Harbour:
dbg1.PNG
dbg2.PNG
[]´s
Alexandre Santos (AlxSts)
Avatar do usuário
Itamar M. Lins Jr.
Administrador
Administrador
Mensagens: 7929
Registrado em: 30 Mai 2007 11:31
Localização: Ilheus Bahia
Curtiu: 1 vez

debugar em meia tela no xHarbour

Mensagem por Itamar M. Lins Jr. »

mas não foi portado para xHarbour e Harbour:
Acredito que no Harbour do GIT 3.2 já está totalmente funcional, igualzinho ao Clipper.
Houve muita correção no debug esses meses.
Estou aprendendo a usar o Debug da HBIDE inclusive ele mostra as classes da Hwgui...

Saudações,
Itamar M. Lins Jr.
Saudações,
Itamar M. Lins Jr.
alxsts
Colaborador
Colaborador
Mensagens: 3092
Registrado em: 12 Ago 2008 15:50
Localização: São Paulo-SP-Brasil

debugar em meia tela no xHarbour

Mensagem por alxsts »

Olá!

Creio que a minha versão está desatualizada:

Código: Selecionar todos

D:\TestesHB\MySQL\botao>harbour /quiet
Harbour 3.2.0dev (Rev. 18443)
Copyright (c) 1999-2012, http://harbour-project.org/
[]´s
Alexandre Santos (AlxSts)
Avatar do usuário
Itamar M. Lins Jr.
Administrador
Administrador
Mensagens: 7929
Registrado em: 30 Mai 2007 11:31
Localização: Ilheus Bahia
Curtiu: 1 vez

debugar em meia tela no xHarbour

Mensagem por Itamar M. Lins Jr. »

Somente algumas do debug... no Harbour 3.2 do GIT, fora as coisas do DBF, SQL,GTWIN,WTWVT etc...

Código: Selecionar todos

  * src/debug/dbgentry.c
  * src/debug/debugger.prg
    * prepare the code to return error object when evaluated expression
      fails as proposed by Teo. This functionality is not enabled yet.
      I'm waiting for information about current public debugger API used
      in 3-rd party projects before I decide to change it.
2014-09-17 16:45 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
  * include/hbdebug.ch
    + added HB_DBG_* constant values for arrays returned by __dbg*()
      functions

  * include/hbset.h
  * src/vm/set.c
    + added new C function: hb_setGetItem();

  * src/debug/dbgentry.c
    * use HB_DBG_* constant values
    + added new debugger function: __dbgGetSETs() - it returns array with
      all HVM SETs: { { <nSet>, <cSetName>, <xSetValue> }, ... }
    % optimized hb_dbgActivateCallStackArray() and hb_dbgActivateModuleArray()

  * src/debug/debugger.prg
    * use HB_DBG_* constant values
    * use __dbgGetSETs() for "System Settings" window
    + added support for Harbour SET extensions

  * ChangeLog.txt
    * updated description for structure of array returned
      by __dbgGetBreakPoints()

2014-09-11 14:41 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
  * src/debug/dbgentry.c
    * moved code used to create callstack array to separate
      function hb_dbgActivateCallStackArray()
    * changed function order to avoid some forward declarations

  * src/debug/dbgwa.prg
    ! fixed position of some item in F6-WA window

2014-09-11 12:49 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
  * src/debug/dbgentry.c
    % optimized memvar updating

2014-09-10 00:51 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
  * src/vm/hvm.c
    ! added missing HB_STACK_TLS_PRELOAD - thanks to Teo

2014-09-09 20:49 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
  * include/hbvm.h
  * src/vm/hvm.c
    + added new HVM function: hb_vmTryEval()
      This function tries to execute given block or function
      inside BEGIN SEQUENCE / RECOVER oErr / END SEQUENCE statement.
      It return HB_TRUE if it was executed without any problem and
      HB_FALSE otherwise. Result or RTE object is stored in 1-st
      parameter and should be freed by the caller using hb_itemRelese()

  * src/debug/dbgentry.c
    ! use hb_vmTryEval() instead of hb_itemDo() to evaluate trace point
      expressions. Now debugger does not crash when user sets tracepoint
      expression which cannot be evaluated in executed context.
    ! allow to use expressions with more then 99 variables
    ! added missing protections against GPF when wrong parameters are
      passed to __dbg*() functions
    * keep original trace and watch point expression for farther
      processing
    * replaced IS_IDENT_*() macros with HB_IS*IDCHAR()
    + added new debuger function:
         __dbgGetWatchPoints() -> <aWatchTracePoints>
      <aWatchTracePoints> contains subarrays describing trace and watch
      points:
         { <cExpression>, <lTracePoint>, <lValid>, <xResult> }
      It was the last function necessary to extract all information
      about debugged context from core internals. Now it's possible
      to create fully functional standalone debugger without storing
      and updating locally any information about debugger state.
      All such information can be accessed at any time using __dbg*()
      functions.
      It should greatly simplify creating 3-rd party debuggers like
      HWDebug or HBQTDebug.

  * src/debug/debugger.prg
    ! fixed callstack window updating during tracing and stepping.
      Tanks to Rolf for reporting the problem.
Saudações,
Itamar M. Lins Jr.
Saudações,
Itamar M. Lins Jr.
Avatar do usuário
Itamar M. Lins Jr.
Administrador
Administrador
Mensagens: 7929
Registrado em: 30 Mai 2007 11:31
Localização: Ilheus Bahia
Curtiu: 1 vez

debugar em meia tela no xHarbour

Mensagem por Itamar M. Lins Jr. »

Tela debug HB 3.4 que provavelmente é a mesma do 3.2 do GIT

Código: Selecionar todos

C:\Users\Itamar\Documents\GitHub\harbour-core\tests>harbour -build
Harbour 3.4.0dev (246328e) (2014-08-22 00:39)
Copyright (c) 1999-2014, https://github.com/vszakats/harbour-core/

Harbour Build Info
---------------------------
Version: Harbour 3.4.0dev (246328e) (2014-08-22 00:39)
Compiler: MinGW GNU C 4.8.2 (32-bit)
Platform: Windows 7 6.1.7601 Service Pack 1
PCode version: 0.3
Commit info: 2014-08-22 02:39:00 +0200
Commit ID: 246328e
Built on: Sep 22 2014 19:09:06
Build options:
---------------------------
É como informei antes, clicar o botão direito na tela do DOS no título da janela (propriedades)
Nesse caso eu coloquei 80x50

Saudações,
Itamar M. Lins Jr.
Anexos
Tela CMD
Tela CMD
Tela do Debug 3.2 / 3.4
Tela do Debug 3.2 / 3.4
Saudações,
Itamar M. Lins Jr.
Avatar do usuário
Itamar M. Lins Jr.
Administrador
Administrador
Mensagens: 7929
Registrado em: 30 Mai 2007 11:31
Localização: Ilheus Bahia
Curtiu: 1 vez

debugar em meia tela no xHarbour

Mensagem por Itamar M. Lins Jr. »

Outra coisa que esqueci
xHarbour 1.2.1 + Hwgui 2.17
Debugar (console) no xHarbour uma aplicação em Hwgui, pode tirar o cavalinho da chuva.
Só se for com o Debug do Alexander Kressin.
Usando o Harbour do GIT eu consigo debugar a HWGUI com a HBIDE.

Saudações,
Itamar M. Lins Jr.
Saudações,
Itamar M. Lins Jr.
Responder