UE Studio Config - Harbour 3.0, MSVC, FWH

Re: UE Studio Config - Harbour 3.0, MSVC, FWH

Postby Antonio Linares » Wed Dec 28, 2011 6:47 pm

Frank,

Glad to know you are moving forward :-)

Remains the missing 'hbmisc.lib' respectively 'hbnf.lib'


The best way to solve that is to download the required files to build those libs yourself. You can access the files from here:

http://harbour-project.svn.sourceforge.net/viewvc/harbour-project/trunk/harbour/contrib/hbmisc/

Using Harbour hbmk2.exe you should be able to easily build it :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41462
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: UE Studio Config - Harbour 3.0, MSVC, FWH

Postby frose » Thu Dec 29, 2011 4:21 pm

Antonio,

ok, I'll try it!

There is still an unresolved external symbol left, no idea what to do:
Code: Select all  Expand view
hbrtl.lib(hbsocket.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__WSAIoctl@36" in Funktion "_hb_socketGetIFaces".
Windows 11 Pro 22H2 22621.1848
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Harbour 3.2.0dev (r2008190002)
FWH 23.10 x86
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: UE Studio Config - Harbour 3.0, MSVC, FWH

Postby Antonio Linares » Thu Dec 29, 2011 7:12 pm

Frank,

You have to link WS2_32.Lib from MSVC :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41462
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: UE Studio Config - Harbour 3.0, MSVC, FWH

Postby frose » Fri Dec 30, 2011 11:06 am

Antonio,

have commented some xHarbour extensions function calls, so the app links now!

Was in the hope that I can use the built in debugger, but it has some serious disadvantages. For explanation see screen shot:

Image

- It's very slow, needs roundabout 30 seconds for the function call 'aParameters := My_TokenArray( cParameter, '#' )'
- As you can see in the screen shot, sometimes the shown source line (dark red) isn't the one which will executed next with F8 (LOCAL i). Consider that <nFound> is already initialised!
- It's not possible to set breakpoints with 'AltD()'

Further disadvantages, not so serious:
- Monitoring only LOCAL's, no PUBLIC's, PRIVATE's and STATIC's
- No watch function, to see only a few variables or the value of an expression (script function)
- Not possible to see the Set() values
- Not possible to monitor the values of (multidimensional) arrays
- No syntax highlightning
Windows 11 Pro 22H2 22621.1848
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Harbour 3.2.0dev (r2008190002)
FWH 23.10 x86
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: UE Studio Config - Harbour 3.0, MSVC, FWH

Postby Antonio Linares » Fri Dec 30, 2011 7:26 pm

Frank,

We have received very little feedback about our debugger so we really thank you all the feedback that you are providing us :-)

The Harbour profiler could be used to detect the bottle necks that are slowing down its execution. Anyhow, it is implemented in PRG code and that obviously doesn't offer the best possible speed.

Regarding the missing areas that you comment, we could implement them. Its not very difficult. With your feedback and comments surely we can improve it :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41462
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: UE Studio Config - Harbour 3.0, MSVC, FWH

Postby Antonio Linares » Fri Dec 30, 2011 8:00 pm

Frank,

Here you have the SETs browser already implemented :-) As you can see we can easily enhance the FWH debugger as much as needed,

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41462
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: UE Studio Config - Harbour 3.0, MSVC, FWH

Postby Antonio Linares » Sat Dec 31, 2011 9:54 am

Implementing Profiler support on the debugger so we can inspect which procedures are consuming more time and number of calls :-)

Image

Code: Select all  Expand view

          // Turn on profiling.
          __setProfiler( .T. )

   ...

          @0, 0 XBROWSE ::oBrwProf ARRAY Array( __DynSCount() ) SIZE 300, 180 PIXEL OF ::oGet:aDialogs[8]

   ...

          ADD TO ::oBrwProf HEADER 'Symbol'  DATA __DynSGetName( ::oBrwProf:nArrayAt ) SIZE 150
          ADD TO ::oBrwProf HEADER 'Is Function'  DATA __DYNSISFUN( ::oBrwProf:nArrayAt ) SIZE 100
          ADD TO ::oBrwProf HEADER 'Called'  DATA __DynSGetPrf( ::oBrwProf:nArrayAt )[ 1 ] SIZE 100
          ADD TO ::oBrwProf HEADER 'Time'    DATA __DynSGetPrf( ::oBrwProf:nArrayAt )[ 2 ] SIZE 100
 


Important: In order to use the Harbour Profiler, Harbour has to be built using HB_USE_PROFILER
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41462
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: UE Studio Config - Harbour 3.0, MSVC, FWH

Postby frose » Sat Dec 31, 2011 10:29 am

Antonio,

thank you for the fast response and the perspective to have an excellent FiveWin debugging function in the near future :-)

As stated above, the most important issues is the difference between the shown and the actual executed row and the time-consuming preparation of the xBrowse.

Understanding that it’s an array-xBrowse and it takes some time to prepare it, particularly if the source files have thousands (more than 10000) of rows. I suppose thats also the reason for the row-differences!?

So, perhaps you can change the concept from file- to function-/procedure-/method- oriented preparation!

At least, it would be possible/thinkable to have separate dialogs for each function/procedure/method, analog to the call structure. The focus then changes automatically between them with the execution progress. For navigation, you can offer a jump-list of all modules in the actual file, etc.

Here my actual feature list:
- Possibility to set breakpoints with 'AltD()'
- Additional monitoring of PUBLIC's, PRIVATE's and STATIC's
- New folder for a ‘Watch function’, to see only a few variables or the value of an expression (script function)
- Copy & paste function: Edit a row in the source browse; copy a part of the line in the clipboard; past it in the watch edit field.
- New folder for Set() values - done
- Monitor the values of (multidimensional) arrays
- Syntax highlighting
- Options: Chose font, encoding and size. I’m still using OEM-font ‘Terminal’
- Make much as possible settings persistent, e.g.:
  • xBrowse state, e.g. column width
  • Breakpoints
  • List of watched variables and expressions
  • Partitioning between upper and lower dialog
Windows 11 Pro 22H2 22621.1848
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Harbour 3.2.0dev (r2008190002)
FWH 23.10 x86
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: UE Studio Config - Harbour 3.0, MSVC, FWH

Postby frose » Sat Dec 31, 2011 12:27 pm

Antonio,

good idea to include the Profiler!

Wish you and all the others a happy new year and all the best
Windows 11 Pro 22H2 22621.1848
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Harbour 3.2.0dev (r2008190002)
FWH 23.10 x86
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: UE Studio Config - Harbour 3.0, MSVC, FWH

Postby Antonio Linares » Sat Dec 31, 2011 2:15 pm

Frank,

Already inspecting locals, static, public and privates :-)

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41462
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: UE Studio Config - Harbour 3.0, MSVC, FWH

Postby frose » Sat Dec 31, 2011 4:22 pm

Antonio,

just found the reason for 'the difference between the shown and the actual executed row': commented lines longer than 256 characters!

NOT OK:
Code: Select all  Expand view
//   MsgInfo( "This is a long source line with dummy text! Eos legere aperiam expetenda ea. In omnes imperdiet sed, eius populo sapientem cu per. Cum te soluta officiis, vero utroque te mea, usu ei enim movet." + "Ne iracundia mnesarchum duo, an agam dolore consulatu est. Dicunt eleifend splendide vim at, at nec utroque ancillae. Posse doming postulant sed ex, ei vix timeam comprehensam." + CRLF + CRLF + ;
//      "Id qui altera persius repudiare, ea audire intellegebat vix. Est adhuc latine eu, in his minim laudem. Sea ea detracto nominavi. Ius ignota apeirian ut, ea has meliore sensibus constituto," + ;
//      "ad ullum summo omnesque per." )
 

OK:
Code: Select all  Expand view
//   MsgInfo( "This is a long source line with dummy text! Eos legere aperiam expetenda ea. In omnes imperdiet sed, eius populo sapientem cu per. Cum te soluta officiis, vero utroque te mea, usu ei enim movet." + "Ne iracundia mnesarchum duo, an agam
//dolore consulatu est. Dicunt eleifend splendide vim at, at nec utroque ancillae. Posse doming postulant sed ex, ei vix timeam comprehensam." + CRLF + CRLF + ;
//      "Id qui altera persius repudiare, ea audire intellegebat vix. Est adhuc latine eu, in his minim laudem. Sea ea detracto nominavi. Ius ignota apeirian ut, ea has meliore sensibus constituto," + ;
//      "ad ullum summo omnesque per." )
 

:D :D :D

Tests continues next year :wink:
Windows 11 Pro 22H2 22621.1848
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Harbour 3.2.0dev (r2008190002)
FWH 23.10 x86
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: UE Studio Config - Harbour 3.0, MSVC, FWH

Postby Otto » Tue Jan 14, 2020 4:53 pm

Hello,
Does someone know if it is possible to run a batch file "my.bat" before starting the compiler via UEStudio?
Thanky in advance
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6133
Joined: Fri Oct 07, 2005 7:07 pm

Re: UE Studio Config - Harbour 3.0, MSVC, FWH

Postby Giovany Vecchi » Wed Jan 15, 2020 12:21 am

Yes, enter as many commands as you like

Edit APPLICATION
Code: Select all  Expand view

[Build]
Out = $T
Depends = $FGO $FGR
DebugFlag =
ReleaseFlag =
Cmd0 = CMD /C DelDepend.bat
Cmd1 = ilink32 $(LOPT) $(Bcc_Dir)\LIB\c0w32.obj $FGO, $T,, $(LIBS),, $FGR
Cmd2 = $(Working Directory)\upx.exe  -1 --compress-icons=0 -o$(Working Directory)\$On2.EXE $(Working Directory)\$On.EXE
 
User avatar
Giovany Vecchi
 
Posts: 211
Joined: Mon Jun 05, 2006 9:39 pm
Location: Brasil

Re: UE Studio Config - Harbour 3.0, MSVC, FWH

Postby Otto » Wed Jan 15, 2020 7:11 am

Hello Giovany,
Thank you so much.
Now it is working fine.
Now I can call first HARBOURINO to batch the files and then the compiler.
Best regards
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6133
Joined: Fri Oct 07, 2005 7:07 pm

Re: UE Studio Config - Harbour 3.0, MSVC, FWH

Postby Otto » Wed Jan 15, 2020 3:09 pm

Hello Giovany,
do you know how do call the bat-file that the next cmd waits till the batch file is closed.
(like waitrun).
Best regards
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6133
Joined: Fri Oct 07, 2005 7:07 pm

PreviousNext

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 131 guests