Debug/Build Multiple Projects in same workspace #739
-
Hello! Have this in the root of the workspace:
{
"type": "swf",
"request": "launch",
"name": "Launch Server",
"internalConsoleOptions": "openOnSessionStart",
"preLaunchTask": "Build Debug AIR Server",
"program": "${workspaceFolder}/server/bin/Server.swf"
},
{
"type": "swf",
"request": "launch",
"name": "Launch Client",
"internalConsoleOptions": "openOnSessionStart",
"preLaunchTask": "Build Debug AIR Client",
"program": "${workspaceFolder}/client/bin/Client.swf"
}
{
"version": "2.0.0",
"tasks": [
{
"type": "actionscript",
"debug": true,
"air": "air",
"asconfig": "${workspaceFolder}/server/asconfig.json",
"group": "build",
"problemMatcher": [],
"label": "Build Debug AIR Server"
},
{
"type": "actionscript",
"debug": true,
"air": "air",
"asconfig": "${workspaceFolder}/client/asconfig.json",
"group": "build",
"problemMatcher": [],
"label": "Build Debug AIR Client"
}
]
} And when debugging there are errors no matter the combination of settings tried. Have a Any tip about this will be highly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
UpdateFor a moment, abandoned the whole root thing, and opened the server dir in VSCode, and added its own launch and tasks configurations and it worked... So tried to copy that configuration back to the root thing, abandoned the tasks.json, and I have this launch config now: {
"version": "0.2.0",
"configurations": [
{
"type": "swf",
"request": "launch",
"name": "Launch Server",
"internalConsoleOptions": "openOnSessionStart",
"rootDirectory": "server",
"asconfigPath": "server/asconfig.json",
"program": "server/src/Server-app.xml"
},
{
"type": "swf",
"request": "launch",
"name": "Launch Client",
"internalConsoleOptions": "openOnSessionStart",
"rootDirectory": "client",
"asconfigPath": "client/asconfig.json",
"program": "client/src/Client-app.xml"
}
]
} Still not working... |
Beta Was this translation helpful? Give feedback.
-
In launch.json, you want to point to the {
"version": "0.2.0",
"configurations": [
{
"type": "swf",
"request": "launch",
"name": "Launch Server",
"program": "server/bin/Server-app.xml"
},
{
"type": "swf",
"request": "launch",
"name": "Launch Client",
"program": "client/bin/Client-app.xml"
}
]
} |
Beta Was this translation helpful? Give feedback.
In launch.json, you want to point to the
*-app.xml
files in your output directories.