FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)

User projects written in or related to FreeBASIC.
SARG
Posts: 1260
Joined: May 27, 2005 7:15
Location: FRANCE

Re: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)

Postby SARG » Feb 03, 2021 11:51

VANYA wrote:And I also forgot to write: If you download the source code to the debugger in UTF-16LE, then it is not displayed.

Try that and tell me. (only an exe for 32bit) https://users.freebasic-portal.de/sarg/ ... nicode.zip

I coded a snippet for creating this 2 lines in UTF16-LE format and when debugging the display is perfect (main window and current line).

Code: Select all

'FreeBASIC
Print "test file in UTF16-LE Если использовать Fast Run в FBDebugger, показывает место ошибки?"
VANYA
Posts: 1507
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)

Postby VANYA » Feb 03, 2021 14:37

SARG wrote:
VANYA wrote:And I also forgot to write: If you download the source code to the debugger in UTF-16LE, then it is not displayed.

Try that and tell me. (only an exe for 32bit) https://users.freebasic-portal.de/sarg/ ... nicode.zip

I coded a snippet for creating this 2 lines in UTF16-LE format and when debugging the display is perfect (main window and current line).

Code: Select all

'FreeBASIC
Print "test file in UTF16-LE Если использовать Fast Run в FBDebugger, показывает место ошибки?"


SARG, unfortunately, Asian hieroglyphs are loaded. I do not know what you did there, but the text in ASCII can be translated as follows:

Code: Select all

Function UTFTOASCII(ByVal text As WString Ptr) As String Export
  Var    blen = WideCharToMultiByte (CP_ACP  , 0,text , -1, 0, 0,0,0)
  Dim As ZString ptr wbuf
  Dim As String returnS
  wbuf= allocate( blen )
  WideCharToMultiByte (CP_ACP  , 0,text , -1, Cast( LPSTR ,wbuf), blen,0,0)
  returnS=*wbuf
  DeAllocate(wbuf)
  Return returnS
End Function
Xusinboy Bekchanov
Posts: 402
Joined: Jul 26, 2018 18:28

Re: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)

Postby Xusinboy Bekchanov » May 13, 2021 2:50

If you compile FBDebugger c -gen gas64, then the program crashes when debugging this code on line 10:

Code: Select all

Type _vec3 As vec3 ' forward declare

Type vec2
  Declare Constructor(ByRef x As Const Single=0.0, ByRef x As Const Single=0.0)
  Declare Function xxx() ByRef As _vec3
  As Single x=Any,y=Any
End Type
Constructor vec2(ByRef a As Const Single, ByRef b As Const Single)
  x=a:y=b
End Constructor

Type vec3
  Declare Constructor(ByRef x As Const Single=0.0, ByRef x As Const Single=0.0, ByRef z As Const Single=0.0)
  As Single x=Any,y=Any,z=Any
End Type
Constructor vec3(ByRef a As Const Single, ByRef b As Const Single, ByRef c As Const Single)
  x=a:y=b:z=c
End Constructor

Function vec2.xxx() ByRef As vec3
  Static v As vec3
  v = vec3(1,2,3)
  Return v
End Function

Dim v2 As vec2, v3 As vec3
v3 = v2.xxx() ' <--- function always used like a function returning by value (by copying the returned reference)

When compiling FBDebugger with -gen gcc, this crash is not observed.

Not only this code, when going End Constructor of any code.
SARG
Posts: 1260
Joined: May 27, 2005 7:15
Location: FRANCE

Re: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)

Postby SARG » May 13, 2021 10:36

Hi Xusinboy,
Thanks for the report.

Is the debuggee or fbdebugger which crashes ?
What fbc version 1.07.3 or 1.08 do you use ?

For now I'm a bit stuck with problems on the new version of fbdebugger (WDS/LNX) using W9 library from VANYA.
So I'll investigate that later.
Xusinboy Bekchanov
Posts: 402
Joined: Jul 26, 2018 18:28

Re: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)

Postby Xusinboy Bekchanov » May 13, 2021 13:11

SARG wrote:Is the debuggee or fbdebugger which crashes ?

In my opinion, -gen gas64, because fbdebugger works with -gen gcc (Compiled FBdebugger.exe with fbc.exe "FBdebugger.bas" -gen gcc debug codes with End Constructor's).

SARG wrote:What fbc version 1.07.3 or 1.08 do you use ?

fbc version 1.07.3.
SARG
Posts: 1260
Joined: May 27, 2005 7:15
Location: FRANCE

Re: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)

Postby SARG » May 20, 2021 13:34

@Xusinboy,

I did some tests compiling fbdebugger and your code with -gen gas64 but with my own version 1.07.2 --> no problem.
In 1.07.3 there are not the modifications for gas64 I did since november... So probably I fixed the issue earlier.

I tested also with 1.08 from daily build by St_W ---> no problem.

Jeff should release 1.08 soon but in meantime, if needed, use the version provided by St_W.
visualfreebasic5
Posts: 3
Joined: Dec 11, 2019 15:14
Contact:

Re: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)

Postby visualfreebasic5 » Jun 11, 2021 5:42

This debugging software is very good.
VisualFreeBasic lacks debugging function. I want to modify FB_debugger to use it in VisualFreeBasic. Change the BAS source code to the VFB source code. VFB is visualized, so it is convenient to modify and add functions. But next time FB_debugger is updated, I have to remake it as VFB source code, do you consider that FB_debugger will be written by VisualFreeBasic IDE in the future?
SARG
Posts: 1260
Joined: May 27, 2005 7:15
Location: FRANCE

Re: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)

Postby SARG » Jun 11, 2021 20:22

visualfreebasic5 wrote:This debugging software is very good.
I know :-) thanks.

visualfreebasic5 wrote:But next time FB_debugger is updated, I have to remake it as VFB source code,
Your problem not mine. However the GUI part is very very rarely changed.

visualfreebasic5 wrote:do you consider that FB_debugger will be written by VisualFreeBasic IDE in the future?
No I don't as I just refactored it using W9 library so it'll be also usable on Linux.

@all
With fbc 1.08 and using -gen gas64 debugging will be similar to debugging with gas32 better than with gcc.
Useless, or so seem, features are removed and execution speed of the debuggee is improved.

The Windows version is almost complete.
The Linux version needs still work on the system part.
visualfreebasic5
Posts: 3
Joined: Dec 11, 2019 15:14
Contact:

Re: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)

Postby visualfreebasic5 » Jun 12, 2021 0:03

Fbdebugger will create 1000 RichEdit, can it be optimized? Use only one RichEdit or scintilla
SARG
Posts: 1260
Joined: May 27, 2005 7:15
Location: FRANCE

Re: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)

Postby SARG » Jun 12, 2021 7:20

visualfreebasic5 wrote:Fbdebugger will create 1000 RichEdit, can it be optimized? Use only one RichEdit or scintilla
The next version (3.00) uses only one Scintilla window. :-)
visualfreebasic5
Posts: 3
Joined: Dec 11, 2019 15:14
Contact:

Re: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)

Postby visualfreebasic5 » Jun 12, 2021 13:27

Now 2K 4K display, DPI = 125% to 200%, can version 3.0 support high DPI?
Is version 3.0 expected to be completed this year?
I'm looking forward to it
SARG
Posts: 1260
Joined: May 27, 2005 7:15
Location: FRANCE

Re: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)

Postby SARG » Jun 13, 2021 10:10

visualfreebasic5 wrote:Now 2K 4K display, DPI = 125% to 200%, can version 3.0 support high DPI?
No DPI support.
You can list many reasons but no planned changes.....

visualfreebasic5 wrote:Is version 3.0 expected to be completed this year?
Before the end of month, at least for Windows version.

Return to “Projects”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 5 guests