View unanswered posts | View active topics


Reply to topic  [ 5 posts ] 
(resolved) Debugger not starting for Haxe in 4.0.2-4 / 4.1.0 
Author Message
Member

Joined: Tue Feb 07, 2012 2:27 pm
Posts: 7
Post (resolved) Debugger not starting for Haxe in 4.0.2-4 / 4.1.0
Problem:
FlashDevelop no longer starts the Haxe debugger.
I have tried versions 4.0.2, 4.0.3, 4.0.4, and the latest development - 4.1.0.

This works as expected in version 4.0.1.

Output:
Code:
Running process: C:\Program Files (x86)\FlashDevelop\Tools\fdbuild\fdbuild.exe "L:\projects\*****\Source_hx\*****.hxproj" -ipc 5db76b86-94cf-4d1e-b4c1-12636265f6b0 -version "2.09" -compiler "C:\Motion-Twin\haxe" -library "C:\Program Files (x86)\FlashDevelop\Library" -cp "C:\Program Files (x86)\FlashDevelop\Library\HAXE\classes"
Building ITS3D
Running Pre-Build Command Line...
cmd: taskkill /f /fi "IMAGENAME eq adl.exe"

INFO: No tasks running with the specified criteria.
Running Post-Build Command Line...
cmd: compile.bat C:\Motion-Twin\haxe L:\projects\*****\Source_hx

L:\projects\*****\Source_hx>C:\Motion-Twin\haxe\haxe.exe L:\projects\*****\Source_hx\compile.hxml
Build succeeded
Done(0)


------------------------

Windows 7 Professional SP1
Image

Quote:
How to find your .NET version?

1) Open a random page in IE (just not about:blank)
2) Enter 'javascript:alert(navigator.userAgent);' in the address bar and press enter

The .NET version is shown in the dialog.

Code:
Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.2)


Haxe:
Code:
2.10 (r4972)


Flex SDK:
Code:
4.6.0.23201B


Adobe AIR SDK (pre-release):
Code:
archive_air_3.4_withdrm_sdk_iOS6_06202012


Platform:
Code:
[AIR] [3.4]


Compilation Target:
Code:
Custom Build


Pre-Build Command Line:
Code:
taskkill /f /fi "IMAGENAME eq adl.exe"


Post-Build Command Line:
Code:
compile.bat $(CompilerPath) $(ProjectDir)


compile.bat:
Code:
%1\haxe.exe %2\compile.hxml


compile.hxml:
Code:
## ------------------------------------------------------------------------
##   TARGET
## ------------------------------------------------------------------------

-swf L:/projects/*****/Source_hx/bin/*****.swf
-swf-header 1280:720:60:000000
-swf-version 11.4

## ------------------------------------------------------------------------
##   SOURCE/ LIBRARIES
## ------------------------------------------------------------------------

-cp src
-cp C:\Program Files (x86)\FlashDevelop\Library\HAXE\classes

-main com.*****.Application

-lib air3

## ------------------------------------------------------------------------
##   CONFIGURATION
## ------------------------------------------------------------------------

-D native_application
-D fast_math

--dead-code-elimination
--flash-strict
-D haxe3

## ------------------------------------------------------------------------
##   DEBUG
## ------------------------------------------------------------------------

-debug
-D fdb
-D enable_logger


Test Project = Run Custom Command...:
Code:
packaging\launchAIR.bat 1


launchAIR.bat:
Code:
@echo off

if %1==1 cd packaging

:: XML
set APP_XML=application.xml

:: Path to Flex SDK
set FLEX_SDK=../../SDKs/flex_air/bin
if not exist "%FLEX_SDK%" goto flexsdk
set PATH=%PATH%;%FLEX_SDK%

echo.
echo Starting AIR Debug Launcher...
echo.

::adl -profile mobileDevice -screensize 1280x720:1280x720 %APP_XML% ../bin
::adl -profile mobileDevice -screensize 1024x768:1024x768 %APP_XML% ../bin
::adl -profile mobileDevice -screensize 768x1004:768x1024 %APP_XML% ../bin
::adl -profile mobileDevice -screensize 480x762:480x800 %APP_XML% ../bin
::adl -profile mobileDevice -screensize 800x400:800x400 %APP_XML% ../bin
adl %APP_XML% ../bin

if errorlevel 1 goto error
goto end

:flexsdk
echo.
echo ERROR: Incorrect path to Flex SDK
echo.
echo %FLEX_SDK%
echo.
if %1==1 pause
exit

:error
pause

:end


Last edited by Yamuu on Tue Jun 26, 2012 4:08 pm, edited 1 time in total.



Tue Jun 26, 2012 2:06 pm
Profile
Member

Joined: Tue Feb 07, 2012 2:27 pm
Posts: 7
Post Re: Debugger not starting for Haxe in 4.0.2/3/4 / (4.1.0)
When I copy the following plugins from 4.0.1 it works as expected:
Code:
ASCompletion.dll
HaXeContext.dll
ProjectManager.dll


I'm not sure which one the problem is in considering ASCompletion (4.1.0) and HaXeContext (4.1.0) are dependent of ProjectManager (4.1.0).

Also does not work:
Code:
ASCompletion.dll (4.0.1)
HaXeContext.dll (4.0.1)
ProjectManager.dll (4.1.0)


Tue Jun 26, 2012 2:53 pm
Profile
Member

Joined: Tue Feb 07, 2012 2:27 pm
Posts: 7
Post Re: Debugger not starting for Haxe in 4.0.2/3/4 / (4.1.0)
I've narrowed it down to revision 2283:
http://code.google.com/p/flashdevelop/s ... ail?r=2283

It works in 2282, then fails in 2283.

If you undo this change, it works:
http://code.google.com/p/flashdevelop/s ... Project.cs

I will try to apply this same change to the latest revision and report back.


Tue Jun 26, 2012 3:54 pm
Profile
Member

Joined: Tue Feb 07, 2012 2:27 pm
Posts: 7
Post Re: Debugger not starting for Haxe in 4.0.2/3/4 / (4.1.0)
Works!

Before revision 2283, it would launch the interactive debugger for either flash or any platform other than NME.

In revision 2283-2297 it was changed to flash only.

In revision 2322 it was changed to flash or NME:
http://code.google.com/p/flashdevelop/s ... Project.cs

Since I'm running on Adobe AIR...
Changing it to the following solves my problem with the latest revision:

Code:
public override bool EnableInteractiveDebugger
{
    get
    {
        return movieOptions.DebuggerSupported && CompilerOptions.EnableDebug
            && (    movieOptions.Platform == HaxeMovieOptions.NME_PLATFORM
                ||  movieOptions.Platform == HaxeMovieOptions.FLASHPLAYER_PLATFORM
                ||  movieOptions.Platform == HaxeMovieOptions.AIR_PLATFORM
                ||  movieOptions.Platform == HaxeMovieOptions.AIR_MOBILE_PLATFORM);
    }
}


Should I submit and/or report this somewhere else?

Also- How does one join the project? I see there are 10 people at the moment.


Tue Jun 26, 2012 4:03 pm
Profile
Online
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 10746
Location: Paris, France
Post Re: (resolved) Debugger not starting for Haxe in 4.0.2-4 / 4
Thanks for reporting, it's fixed in SVN now.


Tue Jun 26, 2012 9:32 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.