I'm inviting you to a new Community challenge which we are starting next Monday (April 2)! Earn badges to get more points. Read more information
Reply
Highlighted
Occasional Contributor
Accepted Solution

Does better debugging make JScript a better choice of scripting language than JavaScript?

I'm fairly new to TestComplete, and have been creating a number of test scripts using JavaScript (which seems to be the default language when creating a project).  I am finding it a bit annoying at times that the debugging it a bit limited for JavaScript:  e.g.breakpoints can be set and work fine, but I can't do anything as simple as 'Set Next Statement'.  Is there anyway of getting the debugging to be a bit more flexible, or would it  be worth maybe switching to JScript as the scripting language? 

Posts: 5,210
Topics: 42
Kudos: 2,223
Solutions: 443
Registered: ‎11-30-2009

Re: Does better debugging make JScript a better choice of scripting language than JavaScript?

Honestly, I wouldn't switch to JScript.  While I would love to see "Set Next Statement" and other such things work in JavaScript, the tradeoff is worth it. Classes, default parameter values, and so many other things make using JavaScript so much better.

 

IIRC, there's some product roadmap/feature requests to improve the debugging in JavaScript so it will come some day.  Personally, I'd stick with JavaScript as JScript is no longer being developed/enhanced by Microsoft while JavaScript is still being used and improved on heavily.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Extensions available
Community Leaders Program
Contributor

Re: Does better debugging make JScript a better choice of scripting language than JavaScript?

I did the opposite and went from Jscript to JavaScript.

 

The V8 engine behind Javascript is cutting edge. It's probably the best engine in TestComplete imo.

 

Not to mention it supports es6.