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
.swf
files.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_HOME
is defined or you havejava
in yourPATH
(to runfdb.jar
). Please refer to these links for instructions: -
Compile the
.swf
file you want to debug with the-D fdb
define.
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\extensions
on Windows,~/.vscode/extensions
otherwise) - 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