Console output is not printed

Ranorex Studio, Spy, Recorder, and Driver.
Posts: 28
Joined: Wed Feb 26, 2020 6:51 am

Console output is not printed

Post by ramanaramidi » Mon May 25, 2020 9:23 am


I am trying to run code module using 'Run Code' button. I have included Console.WriteLine in my code to print the messages. But these messages are not getting printed in the Output tab located at the bottom.

Please let me know if any configuration needs to be added.

code_module.JPG (103.91 KiB) Viewed 926 times

User avatar
Ranorex Guru
Ranorex Guru
Posts: 7425
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Console output is not printed

Post by odklizec » Mon May 25, 2020 10:16 am


Console.WriteLine sends output to console window, not to Ouptut tab. You must use System.Diagnostic.Debug.WriteLine instead. Please check this post... ... tml#p49513
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration