debug() in windows (3.1 rc2)
debug() in windows (3.1 rc2)
Hi,
I try to launch game from cmd (windows console) but it runs in separate process (like launching in linux terminal with &)
How can I get debug prints?
3.1 rc2
Win7-64
I try to launch game from cmd (windows console) but it runs in separate process (like launching in linux terminal with &)
How can I get debug prints?
3.1 rc2
Win7-64
Re: debug() in windows (3.1 rc2)
Hmm. Do you have anything interesting in logs/WZlog-*.txt?
Maps | Tower Defense | NullBot AI | More NullBot AI | Scavs | More Scavs | Tilesets | Walkthrough | JSCam
Re: debug() in windows (3.1 rc2)
No, just standard logs with "info" entries.NoQ wrote:Hmm. Do you have anything interesting in logs/WZlog-*.txt?
http://addons.wz2100.net/ developer
Re: debug() in windows (3.1 rc2)
All debug() statements will show in the log, if and only if it is turned on.
Info, Fatal, and something else is on by default, the rest you need to run the game like --debug=all (for everything), --debug=3d (for debug calls that use LOG_3D) and so on.
If you want to reroute to the console, then I think you can use 1>* 2>* or something along those lines...
Info, Fatal, and something else is on by default, the rest you need to run the game like --debug=all (for everything), --debug=3d (for debug calls that use LOG_3D) and so on.
If you want to reroute to the console, then I think you can use 1>* 2>* or something along those lines...
/facepalm ...Grinch stole Warzone

contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
Super busy, don't expect a timely reply back.
Re: debug() in windows (3.1 rc2)
The talk is about the JS debug() function.
Maps | Tower Defense | NullBot AI | More NullBot AI | Scavs | More Scavs | Tilesets | Walkthrough | JSCam
Re: debug() in windows (3.1 rc2)
NoQ wrote:The talk is about the JS debug() function.
Shouldn't post late at night.
/facepalm ...Grinch stole Warzone

contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
Super busy, don't expect a timely reply back.
Re: debug() in windows (3.1 rc2)
js_debug calls qWarning to print the text.
Maps | Tower Defense | NullBot AI | More NullBot AI | Scavs | More Scavs | Tilesets | Walkthrough | JSCam
Re: debug() in windows (3.1 rc2)
NoQ wrote:js_debug calls qWarning to print the text.
void qWarning ( const char * msg, ... )
Calls the message handler with the warning message msg. If no message handler has been installed, the message is printed to stderr. Under Windows, the message is sent to the debugger. This function does nothing if QT_NO_WARNING_OUTPUT was defined during compilation; it exits if the environment variable QT_FATAL_WARNINGS is defined.
Re: debug() in windows (3.1 rc2)
I solve it via external tool:Duha wrote:NoQ wrote:js_debug calls qWarning to print the text.void qWarning ( const char * msg, ... )
Calls the message handler with the warning message msg. If no message handler has been installed, the message is printed to stderr. Under Windows, the message is sent to the debugger. This function does nothing if QT_NO_WARNING_OUTPUT was defined during compilation; it exits if the environment variable QT_FATAL_WARNINGS is defined.
viewtopic.php?f=35&t=10080
http://addons.wz2100.net/ developer
Re: debug() in windows (3.1 rc2)
So should I change javascript debug() to use the C debug() as a quick fix? Then it will show up in the log files, at least.
Re: debug() in windows (3.1 rc2)
If you plan solid fix later, don`t spend you time for quick fix. I have work around this, it is not trouble for me anymore. But changes can break someone workflow.Per wrote:So should I change javascript debug() to use the C debug() as a quick fix? Then it will show up in the log files, at least.
http://addons.wz2100.net/ developer
Re: debug() in windows (3.1 rc2)
Why not just have it do both - what it currently does and also put the debug in to the log file as well?
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
-- https://warzone.atlassian.net/wiki/display/GO
Re: debug() in windows (3.1 rc2)
Because on Linux that would print double of every debug line...aubergine wrote:Why not just have it do both - what it currently does and also put the debug in to the log file as well?
Re: debug() in windows (3.1 rc2)
Could it do just one if it detects that it's running on linux? (I assume there is some way to detect which platform the game is being run on or compiled for?)
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
-- https://warzone.atlassian.net/wiki/display/GO
Re: debug() in windows (3.1 rc2)
Where does debug output currently go on Mac OS X? It's not in the logs (as far as I can tell) and not sure how to see the stderr for an app launched via an icon in apps folder :s
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
-- https://warzone.atlassian.net/wiki/display/GO




