BoxLang: Our new JVM Dynamic Language made by Ortus! Check it out: https://www.boxlang.io

Dumps are not in order of execution

Description

I am not sure in which beta this changed but now the dumps are not shown on the web output buffer in the order of code execution.

import java.time.Duration; // Dumps to Console writedump( var : getModuleList(), label : "Module List", output : "console" ); writeDump( var : [1,2,3,4,5,6,7,8,9,10], label : "Array", output : "console" ); writeDump( var : {a:1,b:2,c:3,d:4,e:5,f:6,g:7,h:8,i:9,j:10}, label : "Struct", output : "console" ); writeDump( var : createObject( "java", "java.time.Instant" ).now(), label : "Instant", output : "console" ); writeDump( var=Duration.ofHours(2).plusMinutes(30), label="Duration" );

You will see they are not in the order of execution when displayed

Attachments

1
  • 18 Dec 2024, 07:26 PM

Activity

Show:

Brad WoodDecember 18, 2024 at 7:26 PM

I can’t reproduce this. I started up a BL server, pasted the code above into a test file and hit it. I got the following lines in the console

[INFO ] ============================================ [INFO ] Module List [INFO ] ============================================ [INFO ] {} [INFO ] ============================================ [INFO ] Array [INFO ] ============================================ [INFO ] [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] [INFO ] ============================================ [INFO ] Struct [INFO ] ============================================ [INFO ] { a : 1, b : 2, c : 3, d : 4, e : 5, f : 6, g : 7, h : 8, i : 9, j : 10 } [INFO ] ============================================ [INFO ] Instant [INFO ] ============================================ [INFO ] 2024-12-18T19:24:28.438040900Z

and the following dump in the browser:

 

image-20241218-192606.png

Everything looks proper to me.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created December 16, 2024 at 10:11 PM
Updated January 12, 2025 at 8:53 PM
Resolved January 12, 2025 at 8:53 PM