Fixed Incorrect debugger line numbers when "Open loaded while playing" is enabled

Fixed AS3 debugger - Slow injecting debug info - now faster
Fixed AS3 debugger - obfuscated classes debugging
Fixed Delayed open loaded SWFs while playing
Fixed AS3 Direct editation - script initializer for main document class

Changed Wrong unicode escape `{invalid_utf8:xxx}` changed to `{invalid_utf8=xxx}` for compatibility with file names
This commit is contained in:
Jindra Petřík
2023-11-19 02:00:27 +01:00
parent e54973b761
commit bd6c953218
53 changed files with 325 additions and 80 deletions

View File

@@ -26,10 +26,10 @@
private static function sendQueue(){
var qo = q;
q = [];
for each(var m in qo){
writeMsg(m.data,m.type);
}
q = [];
for each(var m in qo){
writeMsg(m.data,m.type);
}
}
private static function writeStringNull(msg){
@@ -119,7 +119,7 @@
if(!inited){
initClient("");
}
if(s.connected){
if(s.connected){
if(first){
//s.writeByte(0);
writeStringNull("debug.version.major="+DEBUG_VERSION_MAJOR+";debug.version.minor="+DEBUG_VERSION_MINOR);
@@ -138,12 +138,13 @@
writeBytes(msg);
break;
case MSG_LOADER_URL_GETBYTES:
writeString(msg);
writeString(msg);
break;
case MSG_LOADER_BYTES_GETBYTES:
writeBytes(msg);
break;
}
}
s.flush();
}else{
q.push({type:msgType,data:msg});
}