Posts: 1,510
Threads: 53
Joined: Jul 2022
Reputation:
47
My $0.02. Be glad we don't have to use "GDB", as in starting it in a terminal to watch any variables or to step through code. Try using Freebasic before it "hit version 1" which was cool only because within "GDB" it was able to display BASIC program code while stepping through it. But that was all. I didn't want to use that program at all. There was an impressive effort by somebody, which was a debugger for Freebasic programs but it was clunky to me, the GUI had too many elements that couldn't be hidden temporarily, but it allowed watching variables and setting breakpoints. Another program was a front end to "GDB", but it was probably the same one I described previously.
I would have used something like Power C Trace which I had to purchase along with Multi-C library and with the license for Power C (including C-library source code) by Mix Software. Although it was taxing sometimes to use Power C Trace: sometimes the user's program ended and therefore had to fire up that debugger again with the user program. Also got tired easily trying to check out something in a function and needing to step through its four or five lines of code about a hundred times...
QB64-created programs could fight with each other to get the focus, especially on Windows. It was that way during v0.98 but I'm not sure if it behaved like that with SDL version. It's a side-effect of "_AUTODISPLAY" mechanism.
Posts: 2,700
Threads: 124
Joined: Apr 2022
Reputation:
134
09-25-2022, 06:30 PM
(This post was last modified: 09-25-2022, 06:43 PM by bplus.)
Untitled programs from IDE are compiled into QB64pe.exe folder under "Untitled.bas", so if you think you lost one by failing to save it, look there.
Update: hmm... the "Untitled.bas" is not there! ??? maybe a little bug using $Debug, the "Untitled.exe" is there.
Update: OK "Untitled.bas" only gets saved if you save it, but the exe gets saved automatically. First time I saw the exe without the bas!
b = b + ...
Posts: 439
Threads: 17
Joined: Apr 2022
Reputation:
21
09-28-2022, 05:52 PM
(This post was last modified: 09-28-2022, 05:54 PM by SpriggsySpriggs.)
This is how it has been for as long as I can remember. You don't have to save BAS code to run a program and it doesn't save automatically when you press F5. It just compiles to "Untitled.exe". And the DEBUG stuff is no different. It's just attaching the IDE to the process through TCP/IP.
Ask me about Windows API and maybe some Linux stuff
Posts: 545
Threads: 116
Joined: Apr 2022
Reputation:
39
09-29-2022, 04:17 PM
(This post was last modified: 09-29-2022, 04:18 PM by James D Jarvis.)
Good old Debug.
Back in the before times when I was trying to install OS/2 the distribution assumed drive A was a 3.5 in floppy and wouldn't let you reassign to drive B using any standard tricks. I called IBM and they FAXED me a DEBUG listing so I could edit the OS/2 installer.
It's a strange tale of another age when I called IBM with a software problem, talked to a human who was able to find a solution quickly and got a piece of code via a FAX.