[Debug] fix handling deprecated warnings and stacked errors turned into exceptions
[Debug] enhance perf of DebugClassLoader