runtime debug option

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
artaxerxes
Site Admin
Posts: 1310
Joined: Thu May 14, 2020 1:34 pm

runtime debug option

Post 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
suraimu

Re: runtime debug option

Post by suraimu »

I'd suggest just having two copies on the same machine, one with debug
on, the other with it off.
artaxerxes
Site Admin
Posts: 1310
Joined: Thu May 14, 2020 1:34 pm

Re: runtime debug option

Post by artaxerxes »

...

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


What's happening?

Artaxerxes
artaxerxes
Site Admin
Posts: 1310
Joined: Thu May 14, 2020 1:34 pm

Re: runtime debug option

Post 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
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: runtime debug option

Post 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
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
artaxerxes
Site Admin
Posts: 1310
Joined: Thu May 14, 2020 1:34 pm

Re: runtime debug option

Post 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
nadir
Site Admin
Posts: 407
Joined: Thu May 14, 2020 1:34 pm

Re: runtime debug option

Post by nadir »

When debugging is off, all the code that does debugging is not compiled into the final executable, so the answer is: YES
Colourless
Site Admin
Posts: 731
Joined: Thu May 14, 2020 1:34 pm

Re: runtime debug option

Post 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
artaxerxes
Site Admin
Posts: 1310
Joined: Thu May 14, 2020 1:34 pm

Re: runtime debug option

Post 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
Colourless
Site Admin
Posts: 731
Joined: Thu May 14, 2020 1:34 pm

Re: runtime debug option

Post 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
Kirben
Site Admin
Posts: 14
Joined: Thu May 14, 2020 1:34 pm

Re: runtime debug option

Post by Kirben »

Yes, all the Exult snapshots for Windows are compiled with the DEBUG option enabled.
Locked