detecting debug mode

Started by lemmy101, Sat 26/04/2008 18:24:30

Previous topic - Next topic

lemmy101

Hi all. Is there a way of detecting whether you are running the game thru the actual debugger?

I tried:

#ifdef DEBUG

but that only seems to work on the General Settings "Enable Debug Mode" and has nothing to do with whether you're debugging the script or not.

Reason I ask is at the moment AGX is not working in debugging as the working directory of the game is different. So I want to modify the path of loaded files to match.

Any help would be much appreciated! :)

Thanks!

lemmy

Rui 'Trovatore' Pires

You mean apart from

if (game.debug_mode) {}
if (!game.debug_mode) {}

? Or whatever the proper spelling and function name might be.
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

lemmy101

yup. That's the thing that detects if your debug hotkeys etc are enabled. I need some way of detecting if the game has been run with Run instead of Run without Debugging.

Cheers!

lemmy

Rui 'Trovatore' Pires

Aaaaaaahhhhhhhhhh, right. Sorry 'bout that.
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Pumaman

I don't think this is currently possible ... I'll see about adding something to the plugin API to allow this.

SMF spam blocked by CleanTalk