## What if I distribute an exe without cleaning the console?

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

### What if I distribute an exe without cleaning the console?

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.
Davidobot
Party member
Posts: 1213
Joined: Sat Mar 31, 2012 5:18 am
Location: Cambridge, UK
Contact:

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

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
My library: LovelyMoon
togFox
Party member
Posts: 157
Joined: Sat Jan 30, 2021 9:46 am

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

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

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

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: 157
Joined: Sat Jan 30, 2021 9:46 am

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

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

### Who is online

Users browsing this forum: No registered users and 19 guests