Author Topic: Get debug output  (Read 1016 times)

0 Members and 1 Guest are viewing this topic.

Offline hreintke

Get debug output
« on: July 13, 2016, 09:51:04 AM »
Back after about 18 months without simutrans and working on another laptop as before -> setting up environment.
Running Windows 8, MSVC 2013 :  compiling and running latest svn (and local patches) is working OK.

Trouble to get debug output working again.
Should be "simutrans -debug 3" but when I enter that in the cmd window, simutrans just starts "normally".

Same with the current nightly binary version I tried.

Must have missed an (obvious?) part of documentation.

Any hint appreciated.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4900
  • Total likes: 217
  • Helpful: 108
  • Languages: EN, NO
Re: Get debug output
« Reply #1 on: July 13, 2016, 11:40:34 AM »
I don't remember if it is "-log 3 -debug" or "-log -debug 3", but I'm pretty sure you must have "-log" in there somehow.

Offline hreintke

Re: Get debug output
« Reply #2 on: July 13, 2016, 02:54:58 PM »
Tried all those combinations without success.

Strange is that when I start with "simutrans -h" which should display command line options it just returns without any output.


Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4900
  • Total likes: 217
  • Helpful: 108
  • Languages: EN, NO
Re: Get debug output
« Reply #3 on: July 13, 2016, 03:35:44 PM »
Looks like -h/--help prints to stdout, and is therefore not visible on Windows (unless you explicitly chose to build Simutrans as a console application and not a GUI application).

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4279
  • Total likes: 195
  • Helpful: 149
  • Languages: EN, DE, AT
Re: Get debug output
« Reply #4 on: July 13, 2016, 05:07:09 PM »
It is "-debug 3 -log". The log file is in the simutrans directory. Something like "My Documents/simutrasnn"
Parsley, sage, rosemary, and maggikraut.

Offline hreintke

Re: Get debug output
« Reply #5 on: July 13, 2016, 08:50:21 PM »
Looked for the simu.log in the wrong (.exe) directory instead of the  Documents/simutrans.

Solved, thanks for the help