[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4921: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3896)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4923: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3896)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4924: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3896)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4925: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3896)
TrainSimDev.com • View topic - LUA Debugging

LUA Debugging

LUA Debugging

Postby SteveP_trains » Fri Aug 17, 2018 6:04 pm

Hi
Hope this is a very simple question with a simple answer :)

Within an Engine LUA script to control emitters etc, what Debug command would I use to view the value of a global or variable that is being changed during the scripting?

Have tried various combinations of DEBUG commands and all seem to not compile or then blow up the script in-game.
I've managed to get the LogMate up but then that's it!!

Thanks in advance

Steve
SteveP_trains
Fit for Firing Duties
 
Posts: 37
Images: 1
Joined: Mon Oct 05, 2015 6:16 pm
Has thanked: 2 times
Been thanked: 9 times

Re: LUA Debugging

Postby VictoryWorks » Tue Aug 28, 2018 9:18 am

User avatar
VictoryWorks
Driver
 
Posts: 331
Joined: Mon Apr 07, 2014 1:22 pm
Has thanked: 37 times
Been thanked: 223 times

Re: LUA Debugging

Postby SteveP_trains » Wed Aug 29, 2018 7:56 am

Thanks for that information, Pete
I will give that a try. It sounds it will do what I need.

Steve
SteveP_trains
Fit for Firing Duties
 
Posts: 37
Images: 1
Joined: Mon Oct 05, 2015 6:16 pm
Has thanked: 2 times
Been thanked: 9 times


Return to Rolling Stock General

Who is online

Users browsing this forum: No registered users and 0 guests

cron