debug flex app with intellij

dmCanada's Avatar

dmCanada

08 Jun, 2016 03:36 PM

Greetings,
i am getting this error when launching my flex app in intellij
and the debugger will not work on the flex side of my program my backend (java app) will debug
am i missing something in my gradle build?
"C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.1.1\jre\jre\bin\java.exe" "-Dapplication.home=C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.7\sdks\4.13" -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Duser.language=en -Duser.region=en -Xmx512m -classpath "C:/Program Files (x86)/Adobe/Adobe Flash Builder 4.7/sdks/4.13/lib/fdb.jar" flex.tools.debugger.cli.DebugCLI -ide
Apache fdb (Flash Player Debugger) [build 20140701]
Copyright 2013 The Apache Software Foundation. All rights reserved.
Waiting for Player to connect
Failed to connect; session timed out.
Ensure that:
1. you compiled your Flash movie with debugging on, and
2. you are running the Debugger version of the Flash Player.

=====
gradlefx build for flex project:

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath group: 'org.gradlefx', name: 'gradlefx', version: '1.3.2'
    }
}
apply plugin: 'maven'
apply plugin: 'gradlefx'

repositories {
    maven {
        credentials {
            username = repo_user
            password = repo_password
        }
        url "${repo_base_url}/hci-flex-release-local"

    }

}

flexHome = "${flex_47_home}"

type = 'swf'

ext{
swfName='itBioPath'
}

frameworkLinkage='merged'

dependencies {

    merged fileTree(dir: "src/main/resources/libs", include: '*.swc');
    theme files("${flex_47_home}/frameworks/themes/Halo/halo.swc")

    // merged 'com.google.code.flexlib:flexlib:2.6-M3'
}

srcDirs = ['src/main/flex']
resourceDirs = ['src/main/resources']
testDirs = ['src/test/flex']
testResourceDirs = ['src/test/resources']

mainClass = 'BST.mxml'
output = swfName

htmlWrapper {
    title = swfName
    file = "${swfName}.html"
    source = "${swfName}.html"
    output = "dist"
    swf = swfName
}

compileFlex {
    dependsOn createHtmlWrapper
}

task compile(type: Copy, overwrite: true) {
    dependsOn 'compileFlex', 'copySwf'
    from(buildDir) {
        include '*.swf'
    }
    into 'dist'
}

task copySwf(type: Copy) {
    from(buildDir) {
        include '*.swf'
    }
    into 'dist'
}

clean {
    delete "publish","dist"
}

// Artifact upload to artifactory
group = 'hci-flex'
version = '7.0'

uploadArchives {
    repositories {
        mavenDeployer {
            repository(url: "${repo_base_url}/hci-flex-release-local") {
                authentication(userName: "${repo_user}",password: "${repo_password}")
            }
        }
    }
}

gradle build for java side project:

buildscript {
    repositories {
      maven {
        credentials {
          username = repo_user
          password = repo_password
        }
        url repo_resolve_url
      }
      maven { url 'http://repo.spring.io/plugins-release' }

    }
    dependencies {
      classpath 'org.springframework.build.gradle:propdeps-plugin:0.0.7'
      classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:3.0.1'
      classpath 'hci:hci-conventions:+'
    }
}

apply plugin: 'hci-conventions'

group = 'hci' // Defines Group ID
version = '7.0' // Defines Version

dependencies {

providedCompile 'hci:hci-framework:3.+'
providedCompile 'hci:hci-utils:3.+'
compile 'hci-legacy:DITclient:2.0-07-25-2010'

compile 'org.apache.lucene:lucene-core:4.10.2'
      compile 'org.apache.lucene:lucene-queryparser:4.7.0'
compile 'org.apache.lucene:lucene-analyzers-common:4.7.0'
providedCompile 'org.krysalis:krysalis-barcode:1.0beta'
compile 'org.apache.httpcomponents:httpcore:4.0.1'
compile 'org.apache.httpcomponents:httpclient:4.0.1'
      compile 'avalon:avalon-framework:4.1.4'
compile 'commons-lang:commons-lang:2.2'

providedCompile 'com.microsoft.sqlserver:sqljdbc4:4.0'
providedCompile 'oracle.jdbc:ojdbc6:11.2.0.3.0'


      providedCompile 'org.slf4j:slf4j-api:1.7.12'

testCompile 'com.jayway.restassured:rest-assured:2.9.0'
testCompile 'junit:junit:4.12'
  testCompile 'junit:junit:4.12'
      testCompile 'org.mockito:mockito-all:1.+'

providedCompile 'hci-legacy:cancerstageCalc:1.0-05-07-2012'
providedCompile 'hci:hci-altio-cod:3.+'
providedCompile 'hci:hci-associate:3.+'
providedCompile 'hci:hci-report:3.+'
providedCompile 'hci:hci-dictionary:3.+'
providedCompile 'hci:hci-hibernate5-utils:+'
providedCompile 'hci:hci-dext:3.+'
providedCompile 'hci:hci-meta-attribute:3.+'
providedCompile 'hci:hci-pathology:3.+'
providedCompile 'hci:hci-video:3.+'
providedCompile 'hci:hci-localization:+'
providedCompile 'hci:hci-its:3.+'
providedCompile 'hci:hci-person-research:3.+'
providedCompile 'hci:hci-tumorreg:3.+'
providedCompile 'hci:hci-resource-reference:3.+'
providedCompile 'hci:hci-bstx:3.+'
providedCompile 'hci:hci-xgnomx:3.+'
providedCompile 'hci:hci-subjectx:3.+'

providedCompile 'org.hibernate:hibernate-core:5.0.5.Final'

providedCompile 'hci:hci-adhoc-model-and-security:3.+'
providedCompile 'hci:hci-adhoc-command-api:+'


providedCompile 'javax.servlet:javax.servlet-api:3.1.0'
providedCompile 'log4j:log4j:1.2.17'
providedCompile 'javax:javaee-api:7.0'
}

war {
dependsOn 'BST_FLEX:compile'
  // Add some module dependecies to the manifest
  manifest {
    attributes "Dependencies" : "org.dom4j, org.apache.log4j, com.microsoft.jdbc, oracle.jdbc"
  }
   from("../BST_FLEX/dist") {
    include "*"
  }
}

Thanks,

  1. Support Staff 1 Posted by Yennick Trevels on 13 Jun, 2016 08:09 AM

    Yennick Trevels's Avatar

    Hi, this generally means that you don't have the debug version of the Flash player installed. You can get it here: https://www.adobe.com/support/flashplayer/debug_downloads.html

    When using chrome, make sure that you disable the regular player after having installed the debug player.

  2. 2 Posted by dmCanada on 15 Jun, 2016 03:05 PM

    dmCanada's Avatar

    I do have the flash debugger installed on all my browsers I have been running developing this app for three years on Adobe flash builder built on eclipse with an ant build. We are trying to use a gradleFx build on our front end flex web app. The program runs I just cannot get the flash player to connect to the debug mode in the intellij IDE.

  3. Support Staff 3 Posted by Yennick Trevels on 15 Jun, 2016 03:37 PM

    Yennick Trevels's Avatar

    The other problem might be that your application isn't compiled with debug info, this is a compiler setting you have to enable. With GradleFx you can enable this compiler setting like this:

    additionalCompilerOptions = [
        "-debug=true"
    ]
    
  4. 4 Posted by ZZ on 03 Aug, 2016 03:55 AM

    ZZ's Avatar

    Hello,my IntelliJ Versio is 2016.1.3,i don't know how to get the plugin and install it succelly,thanks~~

  5. Support Staff 5 Posted by Yennick Trevels on 03 Aug, 2016 11:15 AM

    Yennick Trevels's Avatar

    Hi,

    GradleFx is not a plugin for Intellij. Instead it is a plugin for the Gradle build tool, which allows you to create automated builds.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac