Page 1 of 1

Trace Tab of Server script doesn't show debug info. in the correct order.

Posted: Thu Jul 16, 2015 7:43 am
by Dongzhi Yang7528784

Hi Team,

I found that if I have multiple 'console.log("some debug information")' in my server script, they don't seem to show in the correct order when I open the trace tab.

To be more specific , I have the following code in a server script:

------------

console.log("01. some debug info");
--do something---
console.log("02. some debug info");
--do something---
console.log("03. some debug info");
--do something---
console.log("04. some debug info");
--do something---

-----------

When the script is run, and I expect to see the logs from the "Trace" tab in the order of

  1. some debug info

  2. some debug info

  3. some debug info

  4. some debug info

    by somehow, I got them in random order, for example:

  5. some debug info

  6. some debug info

  7. some debug info

  8. some debug info

    This causes problem for debugging, as the chronicle sequence of debug information can be quite important.

    Please check.

    Thanks

    Dongzhi


Trace Tab of Server script doesn't show debug info. in the correct order.

Posted: Fri Jul 17, 2015 11:38 am
by Alena Prykhodko

Hello Dongzhi,

Now they are shown in the reverse sequence and are sorted by time. If between records only 1 ms then order can be broken.
We'll check what can be improved here.


Trace Tab of Server script doesn't show debug info. in the correct order.

Posted: Fri Jul 17, 2015 4:20 pm
by Dongzhi Yang7528784

Hi Alena,

Understood. Please try to fix this, it could be of importance for people who are serious about debugging server code.

Thanks

Dongzhi