# How to print a value using javascript in scripttask

**URL:** <https://forum.flowable.org/t/how-to-print-a-value-using-javascript-in-scripttask/7136>\
**Category:** Uncategorized\
**Created:** [November 27, 2020, 4:09am UTC](https://forum.flowable.org/t/how-to-print-a-value-using-javascript-in-scripttask/7136 "2020-11-27T04:09:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Esther](https://avatars.discourse-cdn.com/v4/letter/e/8c91f0/32.png) [@Esther](https://forum.flowable.org/u/Esther)\
**Post date:** [November 27, 2020, 4:09am UTC](https://forum.flowable.org/t/how-to-print-a-value-using-javascript-in-scripttask/7136/1 "2020-11-27T04:09:59Z")

</div>

How to print a http task response variable using javascript in script task. Console.log and alert are throwing errors. Pls help

---

<div class="post-metadata">

**Author:** ![martin.grofcik](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/martin.grofcik/32/71_2.png) [@martin.grofcik](https://forum.flowable.org/u/martin.grofcik)\
**Post date:** [November 30, 2020, 9:20pm UTC](https://forum.flowable.org/t/how-to-print-a-value-using-javascript-in-scripttask/7136/2 "2020-11-30T21:20:34Z")

</div>

Hi Esther.

I do not know - I usually use groovy scripts.  
May be you can use a debugger to run your script in the context of the execution.

> **[Process debugger – Flowable Blog](https://blog.flowable.org/2018/05/30/process-debugger/)**

  
EXECUTE SCRIPT

Regards  
Martin

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [December 4, 2020, 11:05pm UTC](https://forum.flowable.org/t/how-to-print-a-value-using-javascript-in-scripttask/7136/3 "2020-12-04T23:05:30Z")

</div>

In a javascript script you can print by referencing the default java classes, for example java.lang.System.out.println(“hello”);

---

<div class="post-metadata">

**Author:** ![martin.grofcik](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/martin.grofcik/32/71_2.png) [@martin.grofcik](https://forum.flowable.org/u/martin.grofcik)\
**Post date:** [January 2, 2025, 2:01pm UTC](https://forum.flowable.org/t/how-to-print-a-value-using-javascript-in-scripttask/7136/4 "2025-01-02T14:01:32Z")

</div>

Or use groovy script debugger:

> <https://github.com/crystal-processes/crp-flowable-ex/blob/main/crp-flowable-groovy/README.md>
