This is an extension for debugging Haxe applications on the Flash target via FDB. It is best used with the vshaxe extension.
There's three prerequisites:
-
Download the "Flash Player projector content debugger" from here and associate it with
.swffiles.On Linux, make sure the player's executable is accessible globally (for example, in the
/usr/bin/directory or in thePATH) and its name is no other thanflashplayer(you could rename the original file or make a symlink to it). -
Make sure
JAVA_HOMEis defined or you havejavain yourPATH(to runfdb.jar). Please refer to these links for instructions: -
Compile the
.swffile you want to debug with the-D fdbdefine.
After this, you need a launch configuration. The launch.json should look something like this:
{
"version": "0.2.0",
"configurations": [
{
"name": "Flash",
"type": "fdb",
"request": "launch",
"program": "${workspaceFolder}/bin/application.swf"
}
]
}Replace /bin/application.swf with the path to your swf file.
You can also generate a config via Add Configuration... -> Haxe (Flash):
- Navigate to the extensions folder (
C:\Users\<username>\.vscode\extensionson Windows,~/.vscode/extensionsotherwise) - Clone this repo:
git clone https://github.com/vshaxe/flash-debugger - Change current directory to the cloned one:
cd flash-debugger. - Install dependencies:
npm install - Do
npx haxe build.hxml

