What if I distribute an exe without cleaning the console?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
togFox
Party member
Posts: 162
Joined: Sat Jan 30, 2021 9:46 am

What if I distribute an exe without cleaning the console?

Post by togFox »

I'm just curious - I guess many ppl use PRINT() to send debug info to the console which is not visible when you distribute an EXE so just wondering if there is any real need to remove all the PRINT() statements prior to sharing an exe?

I make best efforts to do so, but there might be remnant statements in some obscure IF statement that gets missed.

Just curious.
User avatar
Davidobot
Party member
Posts: 1214
Joined: Sat Mar 31, 2012 5:18 am
Location: Cambridge, UK
Contact:

Re: What if I distribute an exe without cleaning the console?

Post by Davidobot »

If you turn off the console popping up - there is no immediately obvious way to see the print statement. However, I believe that if they run your exe with a --console flag, it will cause the console to pop up.
My projects: Raycaster, love.js v11.3 port
itch page: link
My website: link
My library: LovelyMoon
togFox
Party member
Posts: 162
Joined: Sat Jan 30, 2021 9:46 am

Re: What if I distribute an exe without cleaning the console?

Post by togFox »

Oh. I see. So that can be activated by the user? Even if exe? I'll be sure to take out passwords (joke)
User avatar
pgimeno
Party member
Posts: 2611
Joined: Sun Oct 18, 2015 2:58 pm

Re: What if I distribute an exe without cleaning the console?

Post by pgimeno »

It has potential to make the application slower. You can disable print() just in case:

Code: Select all

function print() end
togFox
Party member
Posts: 162
Joined: Sat Jan 30, 2021 9:46 am

Re: What if I distribute an exe without cleaning the console?

Post by togFox »

Hmm. I just declare that and job fine. Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 34 guests