Console do not open on Mac OSX

Mac OSX specific forum
Spationaute
New User
New User
Posts: 5
Joined: Thu Jun 12, 2025 6:45 pm

Console do not open on Mac OSX

Post by Spationaute »

Good morning,
I tried to make a quick ping application. On Windows the console window opens without problem but not on mac.

// Moved from "Bugs - Mac OSX" to "Mac OSX" (Kiffi)
User avatar
Kiffi
Addict
Addict
Posts: 1484
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: Console do not open on Mac OSX

Post by Kiffi »

no problem here (Mac Mini M4 / Sequoia 15.5)

From the PB-Documentation:

Code: Select all

  OpenConsole()
  PrintN("Waiting 5 secs before quit...")
  Delay(5000)
If your program is intended to be a pure console application (i.e. not a GUI application which sometimes opens a console) then you must remember to set the executable format to 'Console' when you are compiling your programs.
Hygge
Spationaute
New User
New User
Posts: 5
Joined: Thu Jun 12, 2025 6:45 pm

Re: Console do not open on Mac OSX

Post by Spationaute »

Ho! Thanks, you are right. I setup "console" and now it works perfectly fine.
Spationaute
New User
New User
Posts: 5
Joined: Thu Jun 12, 2025 6:45 pm

Re: Console do not open on Mac OSX

Post by Spationaute »

Seems that I talked too fast. It crashes when using the debug mode.

Image
User avatar
Mindphazer
Enthusiast
Enthusiast
Posts: 456
Joined: Mon Sep 10, 2012 10:41 am
Location: Savoie

Re: Console do not open on Mac OSX

Post by Mindphazer »

Maybe you could post your code ?
MacBook Pro 16" M4 Pro - 24 Gb - MacOS 15.4.1 - Iphone 15 Pro Max - iPad at home
...and unfortunately... Windows at work...
Spationaute
New User
New User
Posts: 5
Joined: Thu Jun 12, 2025 6:45 pm

Re: Console do not open on Mac OSX

Post by Spationaute »

Exact same code that kiffi used.
User avatar
Mindphazer
Enthusiast
Enthusiast
Posts: 456
Joined: Mon Sep 10, 2012 10:41 am
Location: Savoie

Re: Console do not open on Mac OSX

Post by Mindphazer »

No problem here, even with debugger on...
MacBook Pro 16" M4 Pro - 24 Gb - MacOS 15.4.1 - Iphone 15 Pro Max - iPad at home
...and unfortunately... Windows at work...
Post Reply