Difference between revisions of "DebugPrint"
Jump to navigation
Jump to search
imported>Geckbot m (Robot: Automated text replacement (-'''.*'''\r\n +)) |
imported>Odessa (link to scof) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
|origin = FOSE1 | |origin = FOSE1 | ||
|summary = | |summary = Identical to [[PrintToConsole]], but message is only printed if [[SetDebugMode|Debug mode]] is enabled for the calling mod. | ||
|name = DebugPrint | |name = DebugPrint | ||
|alias = | |alias = DBPrintC | ||
|returnType = void | |returnType = void | ||
|arguments = | |arguments = | ||
{{FunctionArgument | {{FunctionArgument | ||
|Name = | |Name = Message | ||
|Type = string | |Type = string | ||
}}{{FunctionArgument | }}{{FunctionArgument | ||
|Name = | |Name = Formatting | ||
|Type = | |Type = | ||
|Optional = optional | |Optional = optional | ||
}} | }} | ||
}} | }} | ||
==Notes== | |||
*Requires use of [[ToString|ToString($)]] to print [[String Variable|string variables]]. | |||
==See Also== | |||
*[[String Formatting]] | |||
*[[PrintToConsole]] | |||
*[[SetDebugMode]] | |||
*[[SCOF]] / [[Con_SCOF]] (to write console output to a file) | |||
*[[Print]] | |||
[[Category:Functions_(FOSE)]] | [[Category:Functions_(FOSE)]] | ||
[[Category:Debugging]] |
Latest revision as of 07:34, 21 July 2014
< [[::Category:Functions|Category:Functions]]
A function added by the Fallout Script Extender.
Description
Identical to PrintToConsole, but message is only printed if Debug mode is enabled for the calling mod.
Syntax
DebugPrint Message:string Formatting
Or:
DBPrintC Message:string Formatting
Notes
- Requires use of ToString($) to print string variables.
See Also
- String Formatting
- PrintToConsole
- SetDebugMode
- SCOF / Con_SCOF (to write console output to a file)