Friday, March 6, 2015

Haxe Killed My AS3 Debugger

I use flash develop. Decided to take some time on the side to learn a bit about Haxe. I had set it up before... And with a bit of work. I hackishly got it working. I even got the Android target working. Today I try to debug a flash project I've been working on... Debugger crashed on startup... Try another old project of mine. Debugger still crashes. ///////////////////////// OUTPUT WINDOW ////////////////////////////////////////////////////// Running process: C:\DEV\Programs\FD\Tools\fdbuild\fdbuild.exe "C:\DEV\FLASH_V2\FV2_PROJECTS\DEBUG\OWMap_DEBUG\OWMap_DEBUG.as3proj" -ipc 126e1256-5858-4bb7-889a-b86381844b02 -version "4.6.0; 3.1" -compiler "C:\DEV\SDK\flex_sdk_4.6" -library "C:\DEV\Programs\FD\Library" Building OWMap_DEBUG mxmlc -load-config+=obj\OWMap_DEBUGConfig.xml -debug=true -incremental=true -swf-version=10 -o obj\OWMap_DEBUG635612101421160768 Incremental compile of 1 Loading configuration file C:\DEV\SDK\flex_sdk_4.6\frameworks\flex-config.xml Loading configuration file C:\DEV\FLASH_V2\FV2_PROJECTS\DEBUG\OWMap_DEBUG\obj\OWMap_DEBUGConfig.xml Nothing has changed since the last compile. Skip... obj\OWMap_DEBUG635612101421160768 (66634 bytes) (fcsh)Build succeeded Done(0) Debugger startup error. For troubleshooting see: Error details: System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) at net.sf.jni4net.jni.JNI.Dll.JNI_GetDefaultJavaVMInitArgs(JavaVMInitArgs* args) at net.sf.jni4net.jni.JNI.Init() at net.sf.jni4net.jni.JNI.CreateJavaVM(JavaVM& jvm, JNIEnv& env, Boolean attachIfExists, String[] options) at net.sf.jni4net.Bridge.CreateJVM() at net.sf.jni4net.Bridge.CreateJVM(BridgeSetup setup) at FlashDebugger.DebuggerManager.Start(Boolean alwaysStart) [Capturing traces with FDB] ///////////////////////// OUTPUT WINDOW ////////////////////////////////////////////////////// I was originally targeting 10.1 in my settings while using debug player "10.0 r2" I am pretty urked right now. I really like the idea of Haxe. And it's given me less headache than Android Studio since I can debug in flash without having laggy emulation... But now it looks like I might have to re-install flash develop to get debugging working again. I think I am going to try and power through what I was working on and fix it without a debugger... Maybe. -John Mark

1 comment: