FB debugger : 3.00 32/64 BIT WDS/LNX..... (2022/09/26)

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

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

Post by SARG »

Version 3.00 beta h : https://users.freebasic-portal.de/sarg/ ... DS_LNX.zip

New features :
- edit watched variable
- show watched in procs/vars tab

Others :
- various bug fixes and improvements


For Linux :
cd [fbdebug_linux] <<-- folder where you put the files
sudo cp libscintilla.so /lib/
sudo ldconfig
SARG
Posts: 1567
Joined: May 27, 2005 7:15
Location: FRANCE

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

Post by SARG »

Some days ago I tried to compile fbdebugger for 32bit Windows, surprisingly no compilation error and it seems working fine. So that's great I can provide a 32bit version.

Version 3.00 beta i : https://users.freebasic-portal.de/sarg/ ... DS_LNX.zip

- 32bit for Windows (and always 64bit Windows and Linux)
- various bug fixes and improvements

I installed a Virtual machine with a 32bit Linux so a 32bit version of fbdebugger to come. :D
wallyg
Posts: 239
Joined: May 08, 2009 7:08
Location: Tucson Arizona

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

Post by wallyg »

I am so grateful for all of your hard work. Thank you from all of us that cannot write perfect code the first time. Thank you. Thank you. Thank you.

Wally
SARG
Posts: 1567
Joined: May 27, 2005 7:15
Location: FRANCE

Re: FB debugger : 3.00 32/64 BIT WDS/LNX..... (2022/09/26)

Post by SARG »

wallyg wrote: Sep 19, 2022 21:42 I am so grateful for all of your hard work. Thank you from all of us that cannot write perfect code the first time. Thank you. Thank you. Thank you.
Very appreciated. Thanks.

Version 3.00 is now official. https://users.freebasic-portal.de/sarg/ ... DS_LNX.zip (first page updated)
95% of features are implemented and surely some bugs are waiting to be discovered. :D

Recently added :
- Linux 32bit
- selection of font size (reminder : you can also use CTRL with +/- to magnify/decrease)
- position and size of main window are saved when exiting and restored when starting.
Dinosaur
Posts: 1434
Joined: Jul 24, 2005 1:13
Location: Hervey Bay (.au)

Re: FB debugger : 3.00 32/64 BIT WDS/LNX..... (2022/09/26)

Post by Dinosaur »

Hi Sarg

After discovering that you have added Linux 32/64 bit, decided to give it a go.
Running Debian 11 32 bit Xorg with openbox on an old application that I am updating.

A single comment sofar:
The source code opens in the left window which is about 30% of the display width.
I can't seem to expand that window by dragging or any other method.
Accurately placing the mouse pointer on the partition does not change to a drag icon.

Any ideas ?

Regards
SARG
Posts: 1567
Joined: May 27, 2005 7:15
Location: FRANCE

Re: FB debugger : 3.00 32/64 BIT WDS/LNX..... (2022/09/26)

Post by SARG »

Hi Dinosaur,

For the moment nothing is planned to change the width of the code window, only the height.
I'm going to add this possibility one way or another (split / percentage).

Thanks for the try. Keep me posted on your tests.
SARG
Posts: 1567
Joined: May 27, 2005 7:15
Location: FRANCE

Re: FB debugger : 3.00 32/64 BIT WDS/LNX..... (2022/09/26)

Post by SARG »

Dinosaur wrote: Oct 10, 2022 5:46 The source code opens in the left window which is about 30% of the display width.
I can't seem to expand that window by dragging or any other method.
Feature added.
Just the 32bit executable for Linux : https://users.freebasic-portal.de/sarg/ ... _LNX32.zip

To adjust the size :
- click on Tools button
- then on settings
- with the spin box (% of width for code window) select the desired value, percentage of total width.
The size of windows is changed immediatly so you can see the result.
The value is saved and restored in the next session.

Don't hesitate to read the help file. :D

CAUTION Multi-threaded programs are not handled correctly, I'm working on this point.
Dinosaur
Posts: 1434
Joined: Jul 24, 2005 1:13
Location: Hervey Bay (.au)

Re: FB debugger : 3.00 32/64 BIT WDS/LNX..... (2022/09/26)

Post by Dinosaur »

Hi SARG

Thanks for your prompt change, and that certainly works.
Now I can see the whole program line when stepping through.

There is one issue though:
Depending on where I place a BP, the program reports;
error=12
in proc new= 0 0
This happens after I run some file reading sub's
If I BP before calling the sub and step through to the sub, then within the first two steps in the sub the debugger hangs
followed by another line
in proc new= 0 192611784 (not the same each time).

If I simply press F8 without any BP's the debugger hangs the program.

Tell me if you need more detail.

Regards
SARG
Posts: 1567
Joined: May 27, 2005 7:15
Location: FRANCE

Re: FB debugger : 3.00 32/64 BIT WDS/LNX..... (2022/09/26)

Post by SARG »

Hi Dinosaur

Hard to say what is happening. If possible send me by PM all the code or a small example.

- Error=12 means "out of memory" strange.....

- 'in proc new= 0 0' and 'in proc new= 0 192611784' the current thread index and a pointer when a new proc is started, nothing abnormal.

-F8 without BP causes a free run maybe there are input/sleep or something waiting. Or obviously a bug.
Dinosaur
Posts: 1434
Joined: Jul 24, 2005 1:13
Location: Hervey Bay (.au)

Re: FB debugger : 3.00 32/64 BIT WDS/LNX..... (2022/09/26)

Post by Dinosaur »

HI SARG

In CGUI there is a function called CguiYieldTimeSlice(0)
By default the event loop of CGUI will yield a timeslice to the system between each two checks for new events. This is to avoid that you CGUI program takes almost all available CPU power. This may slow down your program in some context. If you want to turn off the yielding of timeslices then call this function with 0, to turn it on again call it with non-0.
It appears that it can't be turned off (0) for FBDebugger in 32 bit at least.
I haven't had to turn it ON (1) with Gede and haven't tested it with 64 bit FbDebugger yet.

I will continue testing, but at least I can now run it.

Regards
Post Reply