FreeBASIC IDE with enhanced debugging and project features

User projects written in or related to FreeBASIC.
Juergen Kuehlwein
Posts: 66
Joined: Mar 07, 2018 13:59
Location: Germany

Re: FreeBASIC IDE with enhanced debugging and project features

Postby Juergen Kuehlwein » Jun 18, 2018 19:41

@coderJeff,


i see we cross posted. Well, i think we can bury this virus topic ...


JK
Juergen Kuehlwein
Posts: 66
Joined: Mar 07, 2018 13:59
Location: Germany

Re: FreeBASIC IDE with enhanced debugging and project features

Postby Juergen Kuehlwein » Jun 20, 2018 15:39

Hi all,


V 2.3.0.5 is online, fixing the previously mentioned problems. The picture custom controls for the visual designer is working now. A movie control and maybe a browser control will follow.


JK
coderJeff
Site Admin
Posts: 2717
Joined: Nov 04, 2005 14:23
Location: Ontario, Canada
Contact:

Re: FreeBASIC IDE with enhanced debugging and project features

Postby coderJeff » Jun 23, 2018 19:18

@Juergen, sorry. I didn't mean to cause any panic or dissaude any from trying. That was literally, first time it ever happened. I compile all kinds of sources, usually only requiring a scan only. I wish you good fortune with your project.
RNBW
Posts: 175
Joined: Apr 11, 2015 11:06
Location: UK

Re: FreeBASIC IDE with enhanced debugging and project features

Postby RNBW » Jun 23, 2018 20:05

After updating JK-IDE I couldn't run it. I kept getting an error message. I'm pleased to say I've just downloaded it again and now it works.

It does seem to have a "bug" (probably unfair to call it a bug). If I start a program with a comment (say '-------------) It comes up with all sorts of error messages when compiling. If I start it with a blank line the problem goes away. Alternatively start witth REM instead of ' also works.
Has anyone else come across this?
Juergen Kuehlwein
Posts: 66
Joined: Mar 07, 2018 13:59
Location: Germany

Re: FreeBASIC IDE with enhanced debugging and project features

Postby Juergen Kuehlwein » Jun 25, 2018 21:22

@coderJeff

never mind, it´s always better to be safe than sorry!


@RNBW

could you please post some simple sample code demonstrating, what you describe.


@all

In general, please read the help file! If you have trouble using the IDE, describe as much as you can, so that it is possible to reproduce the problem. Post failing code if possible, make screenshots. If you get error boxes, you can do a Ctrl+C to copy the text of this box into the clipboard and post it here. If you don´t want to post in public here, you can drop me a mail <jk-ide at t minus online dot de> and attach pictures or code. Everything you send to me, will be treated strictly confidential. I´m not interested in your code, i´m interested in fixing the bugs your code lets the IDE make.

As mentioned in a previous post V 2.3.0.3 showed unnecessary error boxes at startup. V 2.3.0.4 didn´t fix this problem entirely. The latest Version (V 2.3.0.5) should run as usual again. The FreeBASIC syntax is more challenging than i initially thought. So not every piece of code, which is syntactically correct, will work with every feature of the IDE, but i´m working on it. Please help me making it as perfect as possible by reporting issues as described above.


JK
Juergen Kuehlwein
Posts: 66
Joined: Mar 07, 2018 13:59
Location: Germany

Re: FreeBASIC IDE with enhanced debugging and project features

Postby Juergen Kuehlwein » Jun 29, 2018 16:27

Hi all,


V 2.3.0.6 is online, minor editor fixes, FreeBASIC support is ready now except for a debugger (comming next) and a browser control (maybe later)


JK
RNBW
Posts: 175
Joined: Apr 11, 2015 11:06
Location: UK

Re: FreeBASIC IDE with enhanced debugging and project features

Postby RNBW » Jun 30, 2018 11:22

@RNBW

could you please post some simple sample code demonstrating, what you describe.


The code below is an example of the problem.

Code: Select all

'============================================

At this point I get an error message "Expected End_Of_Line found '=' in '============================================'

If I remove apostrophe and replace with REM or insert a line before the code, it works.

'  SetGadgetFont
'  Syntax:  SetGadgetFont(gadget, font)
'  Sets the font to the gadget.
'  If you use a function with only the last paramter, then the font
'  is defined by default for all gadgets loaded after this command.
'  If you use the function without parameters, the sytem default font
'  is set in the program.
'============================================

#Include "window9.bi"
OpenWindow ("", 10,10,200,600)
StringGadget (1,10,10,100,20, "button")
SetGadgetFont (, LoadFont ("arial", 36)) 'default font
OptionGadget (2,10,70,200,40, "option 1")
CheckBoxGadget (3,10,140,170,40, "BlaBla")

TextGadget (4,10,200,100,30, "button")
SetGadgetFont (4, LoadFont ("arial", 22)) 'Font for the gadget
ButtonGadget (5,10,250,200,200, "Button", BS_LEFT Or BS_BOTTOM)
SetGadgetFont (5, LoadFont ("Courier New", 30,45 ,,, 1))
SetGadgetFont () 'The system default font
EditorGadget (6,10,460,100,100, "System Font")
Do
 Var event = WaitEvent
 Select Case event
  Case EventClose
   End
 End Select
LOOP
Juergen Kuehlwein
Posts: 66
Joined: Mar 07, 2018 13:59
Location: Germany

Re: FreeBASIC IDE with enhanced debugging and project features

Postby Juergen Kuehlwein » Jul 01, 2018 12:07

Hi RNBW,


if you add "#compiler freebasic" as your first line, it works. I suppose you set FreeBASIC to be your default compiler in Compiler Options Dialog. This should make a first line "#compiler freebasic" obsolete, but in fact it doesn´t (which is a bug)!

Thanks for reporting, i will fix that with the next update.


JK
Juergen Kuehlwein
Posts: 66
Joined: Mar 07, 2018 13:59
Location: Germany

Re: FreeBASIC IDE with enhanced debugging and project features

Postby Juergen Kuehlwein » Jul 13, 2018 16:45

Hi all,


V 2.3.0.8 is online, fixing a problem with tabs when placing a comment (Tab key/Ctrl+K), sometimes the resulting comment position was wrong, you get the correct version number again...


JK
Juergen Kuehlwein
Posts: 66
Joined: Mar 07, 2018 13:59
Location: Germany

Re: FreeBASIC IDE with enhanced debugging and project features

Postby Juergen Kuehlwein » Jul 25, 2018 19:49

I´m going to be offline because of a vacation. Please don´t expect an answer to your posts within the next 3 weeks or so.


JK
Juergen Kuehlwein
Posts: 66
Joined: Mar 07, 2018 13:59
Location: Germany

Re: FreeBASIC IDE with enhanced debugging and project features

Postby Juergen Kuehlwein » Aug 27, 2018 8:07

Hi all,


V 2.3.0.10 is online - adds a context menu to file tabs, fixes a few issues reported by various users, almost all features now support code inside the (implicit) Main function in FreeBASIC (all code outside procedures), a debugger is under construction. PLEASE DON´T USE THE DEBUG MENU in FreeBASIC, because currently this is likely to crash the IDE.


JK
Juergen Kuehlwein
Posts: 66
Joined: Mar 07, 2018 13:59
Location: Germany

Re: FreeBASIC IDE with enhanced debugging and project features

Postby Juergen Kuehlwein » Oct 07, 2018 20:36

Hi all,


V 2.4.0.0 is online - some minor fixes and improvements in the IDE, added a very first version of a FreeBASIC debugger, you may step through code and watch variables for both 32 and 64 bit code (inside the debugger and with mouse hover), all other debugger features still don´t work for FreeBASIC. This debugger works only in combination with the IDE, it will fail if you try to use it as a standalone application.

If you find bugs please report here or drop me a mail: "jk-ide@t-online.de"


JK
The Car
Posts: 102
Joined: Jul 08, 2005 19:02
Location: MN, USA
Contact:

Re: FreeBASIC IDE with enhanced debugging and project features

Postby The Car » Oct 09, 2018 4:39

Hi, looks to be a very nice IDE! I downloaded, used the File->Download FreeBasic option, and tried running the examples/hello.bas as such and everything works.

However, as soon as I debug (32 or 64 bit), the debugger crashes with the message fb_debug_64.exe has stopped working. I'm running win10.


Code: Select all

#compiler freebasic
#COMPILE EXE console 64

print "Hello from FreeBASIC!"

print "Press any key to continue..."
sleep
Juergen Kuehlwein
Posts: 66
Joined: Mar 07, 2018 13:59
Location: Germany

Re: FreeBASIC IDE with enhanced debugging and project features

Postby Juergen Kuehlwein » Oct 09, 2018 15:57

Well, there seems to be a rule that simple bugs always tend to appear AFTER a release. In the meantime i found one myself (string, structure and array parameters are not shown properly).

Funny enough i can debug the compiler´s code itself (one of my code pieces with more complicated code in my countless test runs) but, you are right, it fails on such simple code like yours. Of course i will fix it (within the next few days).

JK
The Car
Posts: 102
Joined: Jul 08, 2005 19:02
Location: MN, USA
Contact:

Re: FreeBASIC IDE with enhanced debugging and project features

Postby The Car » Oct 09, 2018 16:29

Sounds good. Yes, there always seems to be “one more bug.” :) Thanks for bringing debugging to FB in the ide!

Return to “Projects”

Who is online

Users browsing this forum: Exabot [Bot] and 0 guests