Page 1 of 1

Debug point is not hit

Posted: Mon Oct 03, 2016 6:31 am
by deepak1920
Hi,

I am using latest version of ranorex - 6.1.

I am trying to debug the test case using Visual Studio. Whenever I debug the code line -

Ranorex.Core.Reporting.TestReport.Setup(RX.ReportLevel.Info,
Path.Combine(reportDir, "SkyFontTestsReport.rxlog"),
true);

It hangs or goes into some infinite loop. Code never goes to the next line of code. Attached is one debug output file.

If I run (not debug) the test case, it works fine.

Please help me to understand the issue.

Regards,
Deepak

Re: Debug point is not hit

Posted: Tue Oct 04, 2016 1:26 pm
by Support Team
Hello Deepak,

Thank you for uploading the log file. The message "Cannot find or open the PDB file" means that no debugging information is available. This information is stored in the pdb file which should be available in the same directory where the test executable is located. Would you please check if the file is available? Please also make sure that the test is running in debug mode and not in release mode.

Regards,
Bernhard

Re: Debug point is not hit

Posted: Wed Oct 05, 2016 6:34 am
by deepak1920
Hi Bernhard,

Thanks for your reply.

I think this problem is same as described here - http://www.ranorex.com/forum/debug-does ... t5864.html

For me also when I debug the test method then it doesn't show the continue evaluation pop-up. But If I run the test method then it shows the continue evaluation pop-up and works fine.


Please help me on this.


Regards,
Deepak

Re: Debug point is not hit

Posted: Wed Oct 05, 2016 7:28 am
by odklizec
Hi,

If it's a trial mode issue, it's probably a time to start using full version? ;) I believe you are here long enough to already have the Ranorex evaluated? Ranorex Trial is just for evaluation purposes, not for a professional use. True, it should work the same in trial mode as well as in full version. But you clearly use it improperly? So the solution of your problem is probably quite simple? Start using full version :)

Re: Debug point is not hit

Posted: Wed Oct 05, 2016 10:46 am
by deepak1920
Hi Pavel,

I am using evaluated version also on one machine. But for some reason I am using trial version on another machine. I am not facing this issue on my machine with evaluated version. But Debug point is not hit on machine with trial version. Hence I wanted to be sure whether this is a issue with trial version or machine setup is having some problem.

Thanks for your understanding.


Regards,
Deepak

Re: Debug point is not hit

Posted: Fri Oct 07, 2016 2:30 pm
by RobinHood42
Hi Deepak,

You already have a valid license, but you are using the trial version on another machine to write your tests? What? My suggestion: use your license! :wink:

Cheers,
Robin

Re: Debug point is not hit

Posted: Fri Oct 07, 2016 5:06 pm
by deepak1920
Hi Robin,

Thanks for your suggestion.

I don't understand why people are focusing only on license part rather than providing the solution.

My test case is failing on another machine. I want to debug there. Now you will have a question that I can debug on my machine with ranorex license. Answer is - my machine with ranorex license is Windows10 without anniversary update. The machine on which I need to debug is Windows10 with anniversary update. So as configuration is different, debugging on my machine is not the solution.

P.S. - I have runtime license also but that won't help me in debugging.

Regards,
Deepak

Re: Debug point is not hit

Posted: Sat Oct 08, 2016 8:24 am
by odklizec
Hi Deepak,

I don't want to judge you;) The problem is, you misusing Ranorex trial version, to avoid buying new license. A proper solution of you problem is using licensed version of Ranorex. With single Floating license, you can install Ranorex on as many computers as you want. True, you can run just one instance of Ranorex at a time (with single floating license) so you need to close an already running instance of Ranorex on one computer before starting it on another one. Anyway, using floating license should definitely help with your debugging problem on multiple computers. If your company takes the test automation seriously, they should definitely consider buying proper amount of licenses. Buying just one node locked license is definitely a very bad idea. Just my two cents ;)

Re: Debug point is not hit

Posted: Sat Oct 08, 2016 12:40 pm
by Support Team
deepak1920 wrote:I don't understand why people are focusing only on license part rather than providing the solution.
Because the absence of a license is the cause for your issue. The only two possible solutions are to use a Ranorex license or fix Visual Studio. You can choose :-)
deepak1920 wrote:I have runtime license also but that won't help me in debugging.
Sure that helps. A runtime license is enough if you use Visual Studio to debug. Only debugging using Ranorex Studio (i.e. using Ranorex Studio) requires a Premium license.
So if you have a valid Runtime license for the machine, you should not have a problem. If you don't have one, then please order one or don't use Ranorex on that machine. Thank you! :D

Regards,
Alex
Ranorex Team