How to use ActionScript to determine if my app is debugging via VSCode + AS3MXML extension? #757
-
Hi! I'm building a lib that need to know whether my app is debugging via VSCode and trace commands are output to the VSCode's Debug Console? I can't find a perfect way to detect this. Any ideas? Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
joshtynjala
Aug 12, 2024
Replies: 1 comment
-
This should tell you if you're running in the AIR Debug Launcher (ADL): if (Capabilities.playerType == "Desktop" && Capabilities.isDebugger)
{
// running in ADL
} However, I don't think that there's a way to detect whether an IDE's debugger is actively connected to ADL or not. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ylazy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This should tell you if you're running in the AIR Debug Launcher (ADL):
However, I don't think that there's a way to detect whether an IDE's debugger is actively connected to ADL or not.