QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: hanness on August 16, 2021, 05:00:42 pm

Title: BUG REPORT: _ConsoleTitle has difficulties with the new Debug mode
Post by: hanness on August 16, 2021, 05:00:42 pm
Some sample code:

Code: [Select]
$Debug
Rem $DYNAMIC
$Console:Only

_Source _Console
Width 120, 30
Option Base 1

_ConsoleTitle "This is a sample console title"
Cls
Print "If you see this output, then everything is working properly."

' The following line serves no purpose other than to pause the program
Input a


Run the program. Note that PRINT statement never seems to run. In addition, in the IDE you will see that status shows "Running..." indefinitely.

Now, set a break point on line 9 (the line that starts with _ConsoleTitle).
Run the program.
When execution pauses, press F5 to resume running the program. Note that the program now completes successfully including the display of the output from the PRINT statement.

Likewise, if you simply remove the $Debug line and run the program, it will execute just fine.

Test conditions:

This is the August 15th dev build (38e0ec3) of QB64 running on Windows 10 21H1 with all the latest updates installed.
Title: Re: BUG REPORT: _ConsoleTitle has difficulties with the new Debug mode
Post by: FellippeHeitor on August 16, 2021, 05:16:51 pm
Thanks for reporting!
Title: Re: BUG REPORT: _ConsoleTitle has difficulties with the new Debug mode
Post by: SpriggsySpriggs on August 16, 2021, 06:36:49 pm
Can confirm that $Debug with _ConsoleTitle has issues in Windows 11 build 21H2 as well.