Stop multiple Terminal windows opening when debugging

This has finally started to really annoy me.

When I develop ConsoleApplications, I’m constantly running them in the IDE to debug, nothing surprising there.

Whenever I run a ConsoleApplication to debug however, two Terminal windows open - one with my app to interact with and a second Terminal window that has nothing to do with my Xojo app.

Any idea why this happens and how I can prevent it?

Running macOS.

1 Like

The only workaround I know is to not close the last window. It always opens two if you do.

I agree it’s annoying. I never bothered to file Feedback though, I just keep the empty window open. (What @Tim_Parnell just said.)

2 Likes

Investigating it might actually be a macOS thing and not Xojo’s fault. Looks like there is no option in Terminal to spawn the app without a window. Perhaps that’s the issue?

I’m not by my machine to try, but what happens when you command tab into Terminal with no open windows? Does a new window open?

Another thing to try: if you minimise the window you don’t use, does it come back each time or keep being minimised?
(sorry, I don’t have time to try a console app right now to test myself)

I have just checked, and no.

No, but it takes up a extra space in the dock which a no-go for me.

1 Like

Good suggestions but on my Mac, minimising the non-used window doesn’t change the behaviour as it un-minimises at launch.

Such a frustrating little oddity. Glad to know I’m not the only one bugged by it though!

I do wonder why there isn’t a terminal built into the IDE - that would solve the issue.

1 Like

Interesting, I did not see that behavior I only see that behavior with Xojo. :thinking:

Perhaps it can be fixed? Because Lifeboat doesn’t cause this when it opens a SSH Terminal. I think we both do it with AppleScript.

I agree. There’s still the option to minimise windows in their app’s icon; sadly, this setting is either for all windows or none.

I’d love a setting so I can have it run with Warp instead of Terminal.