Skip to content

Debugging Air Project when not at the root folder #671

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

You must be logged in to vote

It is possible to debug when you open a common parent folder as the root of a workspace, but you'll need to configure your .vscode/launch.json file manually. I think the only thing you are required to do differently is set the program field:

{
	"type": "swf",
	"request": "launch",
	"name": "Launch SWF",
	"program": "appfolder/bin-debug/MyProject-app.xml"
}

See this page for all available fields of the swf debugger.

There is another way, though, and I would even argue that this approach is better. Right now, you're opening the common parent folder that contains all of your individual projects. Instead, start by opening your app project folder directly. Then use VSCode's Add Folder to works…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@joshtynjala
Comment options

@joshtynjala
Comment options

Answer selected by joshtynjala
Comment options

You must be logged in to vote
0 replies
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