Dongzhi Yang7528784
Posts: 0
Joined: Mon May 11, 2015 6:28 am

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

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

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

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.

Dongzhi Yang7528784
Posts: 0
Joined: Mon May 11, 2015 6:28 am

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

Hi Alena,

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

Thanks

Dongzhi

Return to “Issues”