Detect if game is build in debug or release mode?

The Partridge Family were neither partridges nor a family. Discuss.
User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Detect if game is build in debug or release mode?

Post by chili » June 17th, 2012, 1:31 pm

My compiler gives an error with the semicolon in and runs perfectly fine when I delete it. The expected result is obtained.
Chili

EdadTace
Posts: 32
Joined: April 22nd, 2012, 10:28 am

Re: Detect if game is build in debug or release mode?

Post by EdadTace » June 17th, 2012, 7:20 pm

I did try it to see if it would make a different, but I got the same result

I didn't get a compiler error - both with and without the semicolon - but when I build it in both debug and release config it would show "debug" in the console window

User avatar
LuX
Posts: 1492
Joined: April 22nd, 2012, 12:33 pm
Location: Finland

Re: Detect if game is build in debug or release mode?

Post by LuX » June 17th, 2012, 10:02 pm

Well how did you do it?

I tried the method in the post I linked and works fine for me.
When you have it written there one part of the code should always come up as inactive depending how you have set the configuration. The inactive text will appear grayed.
ʕ •ᴥ•ʔ

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Detect if game is build in debug or release mode?

Post by chili » June 19th, 2012, 3:44 am

Try cleaning your solution and then building again. That's all I can think of. The code is sound.
Chili

EdadTace
Posts: 32
Joined: April 22nd, 2012, 10:28 am

Re: Detect if game is build in debug or release mode?

Post by EdadTace » June 20th, 2012, 7:03 am

well tried to create an entirely new project, but it still havn't worked

as Lux says, yes the inactive code is greyed out

For now I can't seem to get this working, the way I want it to, so I've gonna stick to the single variable and just change that manually, as I need.
Don't know if something is set up wrong in my EDI or if it's just me doing something incredible stupid ^^'

anyway thanks for the help

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Detect if game is build in debug or release mode?

Post by chili » June 20th, 2012, 9:29 am

Just to be safe, why not post your solution? It might be something you've overlooked.
Chili

Post Reply