fix: load maps when attaching debugger

This commit is contained in:
TopchetoEU 2024-03-30 11:13:45 +02:00
parent 67b2413d7c
commit fda33112a7
Signed by: topchetoeu
GPG Key ID: 6531B8583E5F6ED4
2 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
project_group = me.topchetoeu
project_name = jscript
project_version = 0.9.24-beta
project_version = 0.9.25-beta
main_class = me.topchetoeu.jscript.utils.JScriptRepl

View File

@ -32,6 +32,9 @@ public class DebugContext {
if (sources != null) {
for (var source : sources.entrySet()) debugger.onSourceLoad(source.getKey(), source.getValue());
}
if (maps != null) {
for (var map : maps.entrySet()) debugger.onFunctionLoad(map.getKey(), map.getValue());
}
this.debugger = debugger;
return true;