
#Arma 3 debug commands code#
The code to log something in this example is pretty simple: format call DT_fnc_log

This ain't pretty but might help with script debugging a lot. The number in the bottom right cornor means 9 log entries filters out of 26 log entries overall. I've just added a simple log filter at the bottom, so you are able to filter the log entries to match a specified text in real time. You can enter any valid SQF script code in the large text field and then execute it locally on the client or via remote execution on the server, the result of the code is displayed in the lower text field (also the result of remote exec), just to simplify it so you won't have to add a log call or "hint str (1+2+3)" instead of just call "1+2+3" or whatever (and yes you can use this as a calculator lol) Here a simple screenshot what the debug dialog looks like atm: Is there any interest in tools like this? I can publish my stuff if any admin or script/mod developer may need something like this. That logging extension is optional of course but i use it for debgging myself, not on the live server. Also I have added my own little extension (DLL) for remote logging to a separate window on the server, so essentially if you want to log some debug info it pops up in that window and not in the RPT file. Using the same variables you can also clear or change the fields.I could not find any ArmA2 debug tool that worked with Epoch so I developed my own little script and dialog to do just some simple things like execute SQF code on the fly (client and server side via custom remote execution). ProfileNamespace getVariable "rscdebugconsole_watch4" ProfileNamespace getVariable "rscdebugconsole_watch3" ProfileNamespace getVariable "rscdebugconsole_watch2"

ProfileNamespace getVariable "rscdebugconsole_watch1" ProfileNamespace getVariable "rscdebugconsole_expression" These can also be access using profileNamespace getVariable with the following code: The debug console automatically saves each field as you go, Even after game restart.

The console is automatically available in missions running from editor. In editor map screen, you can open in by clicking on "Debug Console" button or using Ctrl+D shortcut.

While playing a mission from the editor, the console is immediately available in pause menu.
