BowlerHatLLC / vscode-swf-debug

SWF debugger extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=bowlerhatllc.vscode-swf-debug
Apache License 2.0
13 stars 3 forks source link

Error when tracing an unicode character (codepoints > 0xFFFF) #54

Open ylazy opened 3 weeks ago

ylazy commented 3 weeks ago

Hi!

Please view this issue.

trace(String.fromCharCode(0x1F60A));

image

I thought it's a vscode issue but if it's ok with other languages then it could be an as3mxml extension issue or a compiler/runtime issue? I don't understand how as3mxml connecting trace statements to the vscode's debug console so I cannot determine where the problem is.

Please help!

Thank you!

joshtynjala commented 2 weeks ago

The relevant code in vscode-swf-debug is here:

https://github.com/BowlerHatLLC/vscode-swf-debug/blob/c5455c0/swf-debug-adapter/src/main/java/com/as3mxml/vscode/SWFDebugSession.java#L285-L299

joshtynjala commented 1 week ago

I spent a little time debugging.

I confirmed that I can successfully display unicode characters in the debug console, if I hard-code them in the Java code.

The value of traceEvent.information appears to be wrong, so it seems to be a bug in the royale-compiler debugger module (or possibly in the Flash/AIR runtime). I'm not sure how to resolve.