Skip to content

How to use ActionScript to determine if my app is debugging via VSCode + AS3MXML extension? #757

Answered by joshtynjala
ylazy asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ylazy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants