Page 1 of 1

runtime debug option

Posted: Fri Feb 01, 2002 7:41 am
by artaxerxes
Exult Dev Team:

(this time I checked before asking)

Is it possible to have an option to turn on/off the debugging messages, such a with usecode function is now running ?

Having something like:
./exult -d

to start the debugging would greatly improve the ease to locate usecode functions to debug in regard to translation.

I know there is an option to turn-on debugging during compile time but I must say it is a pain to have to recompile the whole thing every single time I want debugging on, debugging off, debugging on, debugging off.....

When I just play, I don't want debugging but when I translate it is really helpful.

Let me know if it is feasible and if you guys are willing to put it together.

Thanks a bunch,

Artaxerxes

Re: runtime debug option

Posted: Fri Feb 01, 2002 9:20 am
by suraimu
I'd suggest just having two copies on the same machine, one with debug
on, the other with it off.

Re: runtime debug option

Posted: Fri Feb 01, 2002 10:51 am
by artaxerxes
...

it says on the board 3 replies on there is only one (well 2 with this one)


What's happening?

Artaxerxes

Re: runtime debug option

Posted: Fri Feb 01, 2002 10:53 am
by artaxerxes
it doesn't do it anymore... weird.


anyways... having 2 version... it is an idea but then everytime I update my tree I have to make 2 compilations ?

I don't know for you but it takes about 15 minutes to compile exult on my P2 350.

Artaxerxes

Re: runtime debug option

Posted: Fri Feb 01, 2002 11:34 pm
by Dominus
/me delurks from the shadows of the maui trees

maybe the debug options in exult.cfg help you
http://exult.info/docs.php#exult_config

/me sits back into the shadow and enjoys a Mai-Tai

Re: runtime debug option

Posted: Mon Feb 04, 2002 5:09 am
by artaxerxes
Dominus:

should I compile with debug mode on for this param to work ?
Because I tried right now (no debug more on) and it failed.

Thx for the tip though.

Artaxerxes

Re: runtime debug option

Posted: Mon Feb 04, 2002 7:17 am
by nadir
When debugging is off, all the code that does debugging is not compiled into the final executable, so the answer is: YES

Re: runtime debug option

Posted: Mon Feb 04, 2002 12:21 pm
by Colourless
You only want to use the usecode/intrinsic tracer right? It should be possible to work something out to allow that when Exult isn't built with DEBUG (it would probably have to be built with another option though).

-Colourless Dragon

Re: runtime debug option

Posted: Mon Feb 04, 2002 1:09 pm
by artaxerxes
Awesome!

thanks for your replies Nadir and Colourless.
I was wondering too that since the 2 other translators use Windows if it was possible to get the windows version of Exult to have this option compiled in.

Maybe I should just ask Kirben about it.

thanks again

Artaxerxes

Re: runtime debug option

Posted: Tue Feb 05, 2002 3:45 am
by Colourless
If i'm not mistaken the Windows snapshots are already compiled with debug info enabled. The usecode tracer can be enabled using those.

-Colourless Dragon

Re: runtime debug option

Posted: Wed Feb 06, 2002 7:48 pm
by Kirben
Yes, all the Exult snapshots for Windows are compiled with the DEBUG option enabled.