# getting error the JavaScript debugger does not support the 'Set Next Statement' command

**URL:** <https://community.smartbear.com/t/getting-error-the-javascript-debugger-does-not-support-the-set-next-statement-command/385>\
**Category:** TestComplete\
**Tags:** test, testcomplete, migrated, desktop-testing\
**Created:** [June 9, 2025, 1:05pm UTC](https://community.smartbear.com/t/getting-error-the-javascript-debugger-does-not-support-the-set-next-statement-command/385 "2025-06-09T13:05:08Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [June 9, 2025, 1:05pm UTC](https://community.smartbear.com/t/getting-error-the-javascript-debugger-does-not-support-the-set-next-statement-command/385/1 "2025-06-09T13:05:08Z")

</div>

> Originally posted by **AmolGawali** on June 09, 2025

I am getting below error on windows server 2025.  
i have installed Testcomplete version 15.75.22.7

when in debug mode, getting this error, when wants to “set next statement”

## TestComplete

Currently, the JavaScript debugger does not support the ‘Set Next Statement’ command.

 ![](https://canada1.discourse-cdn.com/flex049/uploads/smartbear_prod/original/1X/26dbf67f359e69918a01afea9a4f3037af9d58d3.png)

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [June 10, 2025, 3:34pm UTC](https://community.smartbear.com/t/getting-error-the-javascript-debugger-does-not-support-the-set-next-statement-command/385/2 "2025-06-10T15:34:42Z")

</div>

> Originally posted by **scot1967** on June 10, 2025

This is documented here…

> Notes:
> 
> The Set Next Statement and Set Next Operation commands only work within the bounds of the current routine or keyword test. You cannot move the execution to another routine, unit, or test.
> 
> Since the script debugger cannot step through individual statements within a script line, it will execute the whole line to which you jump.
> 
> Changing the current line or keyword test operation may cause errors in your script or keyword test. This may happen, for instance, if the skipped test section creates certain objects or assign values to variables, and the statements or operations, to which you jump, work with these objects or variables (the “new” statements may be unable to retrieve or set objects’s properties or process the variable values).
> 
> **The “Set Next Statement” debugger command is not supported by Python and JavaScript (not JScript) engines.**

[https://support.smartbear.com/testcomplete/docs/testing-with/debugging/running/setting-next-execution-point.html?sbsearch=Set%20Next%20Statement](https://support.smartbear.com/testcomplete/docs/testing-with/debugging/running/setting-next-execution-point.html?sbsearch=Set%20Next%20Statement)

… If you find my posts helpful drop me a like! 👍 Be sure to mark or post the solution to help others out and/or to credit the one who helped you. 😎

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [June 10, 2025, 5:57pm UTC](https://community.smartbear.com/t/getting-error-the-javascript-debugger-does-not-support-the-set-next-statement-command/385/3 "2025-06-10T17:57:14Z")

</div>

> Originally posted by **rraghvani** on June 10, 2025

What are the lines of code you are stepping through, while debugging?

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [June 11, 2025, 12:56pm UTC](https://community.smartbear.com/t/getting-error-the-javascript-debugger-does-not-support-the-set-next-statement-command/385/4 "2025-06-11T12:56:52Z")

</div>

> Originally posted by **AmolGawali** on June 11, 2025

if(Aliases.AvocetVM.ObjDeleteDialogue.WaitProperty(“Exists”,true,10000))  
{  
var DeleteMsg = Aliases.AvocetVM.ObjDeleteDialogue.ObjDeleteMsg;

```
if(DeleteMsg.Exists)  
   Aliases.AvocetVM.ObjDeleteDialogue.ObjYesButton.Click();  
else  
    LogAsError("Delete message is not displayed");  

```

}  
else  
LogAsError(“Delete dialogue is not displayed”);

```
Delay(3000,"Waiting for page to reload");

  var DeleteFlag = VerifyItemPresent("AutoSanity\_item");  
  if (DeleteFlag == false)  
    LogAsCheckpoint("Item is deleted successfully");  
  else  
    LogAsError("Item is not deleted");  

```

I have bookmarked the first line .. and want to jump to " var DeleteFlag" line  
i.e. wants to use the “Set Next Statement”

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [June 11, 2025, 1:31pm UTC](https://community.smartbear.com/t/getting-error-the-javascript-debugger-does-not-support-the-set-next-statement-command/385/5 "2025-06-11T13:31:16Z")

</div>

> Originally posted by **scot1967** on June 11, 2025

TestComplete does not support this in JavaScript. It is available in the right click menu but is not supported for debugging JavaScript. Ref: the link in my previous post. Please let me know if I am missing something here. 🤔

 ![](https://canada1.discourse-cdn.com/flex049/uploads/smartbear_prod/original/1X/8b775f945f6d7c34896d3911551a04cdb5974224.png) ![](https://canada1.discourse-cdn.com/flex049/uploads/smartbear_prod/original/1X/e0cf9b14470640aa5ef655ec84577d1106977b54.png)

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [June 11, 2025, 1:50pm UTC](https://community.smartbear.com/t/getting-error-the-javascript-debugger-does-not-support-the-set-next-statement-command/385/6 "2025-06-11T13:50:26Z")

</div>

> Originally posted by **rraghvani** on June 11, 2025

By the looks of it, “Set Next Statement” while debugging is not supported in Python and JavaScript!

If you have added a breakpoint on the first line, instead of stepping-over each line of code via F10, you can position the cursor on the appropriate line you are interested in i.e. var DeleteFlag, and then select ‘Run to Cursor’ or F4. It will then continue debugging from your cursor position.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [June 11, 2025, 2:41pm UTC](https://community.smartbear.com/t/getting-error-the-javascript-debugger-does-not-support-the-set-next-statement-command/385/7 "2025-06-11T14:41:50Z")

</div>

> Originally posted by **scot1967** on June 11, 2025

> I have bookmarked the first line .. and want to jump to " var DeleteFlag" line  
> i.e. wants to use the “Set Next Statement”

Since this operation isn’t supported in JS by TestComplete (see the first reply to this post 😉) you could temporarily comment out the code you want to skip, set breakpoints and step through.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [June 11, 2025, 2:43pm UTC](https://community.smartbear.com/t/getting-error-the-javascript-debugger-does-not-support-the-set-next-statement-command/385/8 "2025-06-11T14:43:12Z")

</div>

> Originally posted by **scot1967** on June 11, 2025

I also see issues with the curly braces in your If statements. Is this the problem you are debugging?

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [June 11, 2025, 2:46pm UTC](https://community.smartbear.com/t/getting-error-the-javascript-debugger-does-not-support-the-set-next-statement-command/385/9 "2025-06-11T14:46:50Z")

</div>

> Originally posted by **AmolGawali** on June 11, 2025

I have missed Curly braces to paste here; this is just piece of code for an example.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [June 11, 2025, 2:49pm UTC](https://community.smartbear.com/t/getting-error-the-javascript-debugger-does-not-support-the-set-next-statement-command/385/10 "2025-06-11T14:49:54Z")

</div>

> Originally posted by **AmolGawali** on June 11, 2025

When i was in the previous version i.e.14.73 with the same code and framework it was working fine, still i am using it, and "_ **Set Next Statement** _ " works fine for me in that version.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [June 11, 2025, 3:09pm UTC](https://community.smartbear.com/t/getting-error-the-javascript-debugger-does-not-support-the-set-next-statement-command/385/11 "2025-06-11T15:09:27Z")

</div>

> Originally posted by **scot1967** on June 11, 2025

I am not sure about how that was working. 🤔 I am on Version: 15.74.33.7 x64 using JavaScript and see the issue you described. The documentation also states this isn’t supported in debug mode for _JavaScript or Python_.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 7, 2026, 5:16pm UTC](https://community.smartbear.com/t/getting-error-the-javascript-debugger-does-not-support-the-set-next-statement-command/385/12 "2026-10-07T17:16:47Z")

</div>

Closed on October 7, 2026, 5:16pm UTC

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
