# \[SOLVED\]Debug after range

**URL:** https://discourse.nodered.org/t/solved-debug-after-range/11640
**Category:** General
**Created:** [28 May 2019 14:25 UTC](https://discourse.nodered.org/t/solved-debug-after-range/11640 "2019-05-28T14:25:26Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![bumann](https://avatars.discourse-cdn.com/v4/letter/b/7993a0/32.png) [@bumann](https://discourse.nodered.org/u/bumann)
#### Post date: [28 May 2019 14:25 UTC](https://discourse.nodered.org/t/solved-debug-after-range/11640/1 "2019-05-28T14:25:26Z")

</div>

Hi,

i want to range a input from 0-3 to 1-100.  
The payload comes from TTN Node via TTN uplink function in nodered.  
I use the range function in nodered. I can show the output from range function on my dashboard  
via a gauge function. this works good.  
But now i want to see the data in debug module. But the debug module shows no data after the range  
function. Before the range function i can see the data in debug module.

---

<div class="post-metadata">

### Author: ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)
#### Post date: [28 May 2019 14:57 UTC](https://discourse.nodered.org/t/solved-debug-after-range/11640/2 "2019-05-28T14:57:29Z")

</div>

Can you post a picture like this of how your range node is configured?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/3/3028f580a77836586e51eb2d29a5060db7d17d0e.png)

Is your debug nod attached directly to its output?

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [28 May 2019 15:02 UTC](https://discourse.nodered.org/t/solved-debug-after-range/11640/3 "2019-05-28T15:02:13Z")

</div>

Are you sending the same message to both the guage and the debug nodes?

---

<div class="post-metadata">

### Author: ![bumann](https://avatars.discourse-cdn.com/v4/letter/b/7993a0/32.png) [@bumann](https://discourse.nodered.org/u/bumann)
#### Post date: [28 May 2019 15:58 UTC](https://discourse.nodered.org/t/solved-debug-after-range/11640/4 "2019-05-28T15:58:40Z")

</div>

i test it with sending only to debug from range function but it did not works.

Here is my export:

```auto
[{"id":"fd581bcc.7b37d8","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"b5c3f899.9b04d8","type":"ttn uplink","z":"fd581bcc.7b37d8","name":"test ttn","app":"a102f25f.e46fc","dev_id":"","field":"","x":55,"y":373.3333215713501,"wires":[["3921324.07fcbce","26fed6dd.a324fa"]]},{"id":"26fed6dd.a324fa","type":"function","z":"fd581bcc.7b37d8","name":"Bodenfeuchtigkeit","func":"return {payload: {Bodenfeuchtigkeit: msg.payload.ADC_CH0V}};\n","outputs":1,"noerr":0,"x":331.8333435058594,"y":386.3333444595337,"wires":[["84e33c30.37d4b","98f7191b.8a4ca8"]],"outputLabels":["Bodenfeuchtigkeit"]},{"id":"84e33c30.37d4b","type":"range","z":"fd581bcc.7b37d8","minin":"0","maxin":"3","minout":"0","maxout":"100","action":"scale","round":false,"property":"payload","name":"","x":660.666690826416,"y":396.3334255218506,"wires":[["16f4a16a.bb40bf"]]},{"id":"16f4a16a.bb40bf","type":"debug","z":"fd581bcc.7b37d8","name":"bodenfeuchte 0-100 out","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":936.6667785644531,"y":394.9999704360962,"wires":[]},{"id":"3921324.07fcbce","type":"debug","z":"fd581bcc.7b37d8","name":"payload von ttn","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":337.6666946411133,"y":219.0000057220459,"wires":[]},{"id":"98f7191b.8a4ca8","type":"debug","z":"fd581bcc.7b37d8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":525.1666870117188,"y":533.3333740234375,"wires":[]},{"id":"a102f25f.e46fc","type":"ttn app","z":"","appId":"dragino-lsn50-itboxtrier","accessKey":"ttn-account-v2.xxxxxxxxxxx","discovery":"discovery.thethingsnetwork.org:1900"}]

```

here the debug output:

```auto
28.5.2019, 18:00:35node: payload von ttn
msg.payload : Object
{ ADC_CH0V: 0.014, BatV: 3.33, Digital_IStatus: "L", Door_status: "OPEN", EXTI_Trigger: "FALSE" … }
28.5.2019, 18:00:35node: 98f7191b.8a4ca8
msg.payload : Object
{ Bodenfeuchtigkeit: 0.014 }

```

---

<div class="post-metadata">

### Author: ![bumann](https://avatars.discourse-cdn.com/v4/letter/b/7993a0/32.png) [@bumann](https://discourse.nodered.org/u/bumann)
#### Post date: [28 May 2019 16:18 UTC](https://discourse.nodered.org/t/solved-debug-after-range/11640/5 "2019-05-28T16:18:04Z")

</div>

I solved the problem myself, i use the range function before the maniulation function.
