Hi,
Is there any way to skip certain block of code while debugging? I was commenting the code in the past but now my script is too big and it is difficult to comment and debug only certain block.
Please let me know.
Thanks,
Saha
Skipping the code while debugging
Re: Skipping the code while debugging
Is all of your code in one big method?
I would suggest structuring your code in several, smaller, function specific methods that each get called successively by a parent method. When structured in such a way, all you need to do is comment out the method(s) call within the parent method instead of needing to select large amounts of code to comment out.
I would suggest structuring your code in several, smaller, function specific methods that each get called successively by a parent method. When structured in such a way, all you need to do is comment out the method(s) call within the parent method instead of needing to select large amounts of code to comment out.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Skipping the code while debugging
Although I prefer the method Ciege suggested, you can also use the "Set Current Statement" context menu item while debugging to select the next line to execute. Just right click on the line you want to execute and select the mentioned menu item; see following screenshot:
Alex
Ranorex Team
Regards,Alex
Ranorex Team
You do not have the required permissions to view the files attached to this post.