Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6110] Breakpoints are ignored in Appcelerator Studio 5.5.1.x in Debug mode

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2019-01-29T17:40:46.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator CLI, Studio, Titanium SDK & CLI
Labelsn/a
Reporterchrishaff@gmail.com
AssigneeShak Hossain
Created2019-01-18T14:44:29.000+0000
Updated2019-01-29T17:40:46.000+0000

Description

I while I can set breakpoints in Studio they are ignored when launch in debug mode. The debugger keyword is also ignored and does not cause an error. I am using the currently latest version 5.1.1 with Ti SDK 7.5.0.GA against iPhone X Simulator using iOS 12.1. I've selected Debug mode, targeting iPhone X Simulator. I have not tried this with Android. I've tried my own apps and new Classic as well as new Alloy projects as well as Kitchen sink. I did not find any CLI options that would yield a different result. How can one troubleshoot if the issue is Studio or CLI? This issue is [also posted on Stack Overflow](https://stackoverflow.com/questions/54173526/breakpoints-are-ignored-in-appcelerator-studio-5-5-1-x-in-debug-mode). The Studio log file is attached. Trying to generate the Studio daemon log resulted in the following message: "Unable to generate Appc Daemon dump file, maybe due to appc daemon is not running or not available". P.S.: This JIRA does not list the latest version of Studio as an option.

Attachments

FileDateSize
.log2019-01-18T15:05:16.000+0000239047
ClassicDefault.zip2019-01-22T19:10:01.000+00005594140

Comments

  1. Sharif AbuDarda 2019-01-18

    Hello, Please share a sample test project with breakpoints for us to test. Also, provide full steps for successful regeneration. Thanks.
  2. chrishaff@gmail.com 2019-01-22

    In Studio:

    File > New > Mobile App Project

    Select Classic > Default Project

    Fill in text fields, select Ti SDK 7.5.0.GA, select iPad & iPhone deploy targets, disable Axway Platform Services

    Click Finish

    One the project is created:

    Open the new project, then Resources > app.js

    Put a breakpoint anywhere (I tried line 15 ??tabGround.open();?? and line 25)

    Select Debug, then iPhone X (v12.1)

    Your build will start, launch in sim and execute without stopping for any breakpoints

    This is a ZIP of the project it is unmodified from the template. It was created using the Export command in Studio. I don't believe that breakpoints are in this archive, but you may know where they hide... [^ClassicDefault.zip] I've implied all of this information in the original writeup. Are you asking for something else?
  3. Rakhi Mitro 2019-01-23

    [~chrishaff@gmail.com], Thanks for your feedback. This is a known issue. I would like to inform you that engineering has confirmed that issue is scheduled for Studio Release 6.0.0. Don't have any ETA now. Thanks
  4. chrishaff@gmail.com 2019-01-23

    Oy! I will try uninstalling Studio 5.1.1 and install 5.0. Hopefully that gets me back to work. Could you confirm which sub component (Studio, CLI, something else) the issue lies with?
  5. Sharif AbuDarda 2019-01-23

    Hello [~chrishaff@gmail.com], Try with the 5.0 version. This issue is only a studio bug. Should be fixed in 6.0.0 release. Thanks.
  6. chrishaff@gmail.com 2019-01-23

    Thanks for confirming. I just tried installing 5.0. after deleting the 5.1.1 install. The install appeared to go fine, but when I launch it brings up the "Select a workspace" dialog *where it hangs*. I can't Browse, Cancel or click OK. *All I can do it Force Quit.* When I run appc info every thing reports as OK. I do note that I am running the latest version of the CLIs (see below). Could those be the issues. Do I need to revert one/all of those to match? {quote}Appcelerator CLI Installer = 4.2.13 Core Package = 7.0.9 Titanium CLI CLI Version = 5.1.1 node-appc Version = 0.2.44 {quote}
  7. chrishaff@gmail.com 2019-01-23

  8. chrishaff@gmail.com 2019-01-23

    Is there a way to use Chrome dev tools or something else to debug like you can with node and NativeScript? Please let me know. I've only tried this with iOS. Will the debugger work with Android? You said this was a know issue. What's the URL for that (TISTUD) ticket? I went back to Studio 5.0.0 which did launch once I installed JDK 1.8.131. I had to remove 1.8.0_181. *The debugger still does not work.* I ran the below which pointed out that there is a newer Ti CLI. Updating it using sudo npm update -g titanium resulted in no change...?
       $ appc ti setup check
       Appcelerator Command-Line Interface, version 7.0.9
       Copyright (c) 2014-2019, Appcelerator, Inc.  All Rights Reserved.
       
       Enter ctrl-c at any time to quit.
       
       ──────────────────┤ Check Environment ├───────────────────
       
       Node.js
         ✓  node               installed (v8.11.3)
         ✓  npm                installed (v6.5.0)
        
       Titanium CLI
         ★  cli                new version v5.2.0 available (currently v5.1.1)
        
       Titanium CLI Dependencies
         ✓  acs                up-to-date (v2.0.12)
         ✓  alloy              up-to-date (v1.13.4)
         ✓  appc-cli-titanium  up-to-date (v4.4.20)
         ✓  appc-inquirer      up-to-date (v0.1.10)
         ✓  appc-logger        up-to-date (v1.1.27)
         ✓  appc-platform-sdk  up-to-date (v3.1.0)
         ✓  appcd              up-to-date (v1.1.3)
         ✓  arrow              up-to-date (v3.2.7)
         ✓  async              up-to-date (v1.5.2)
         ✓  chalk              up-to-date (v1.1.3)
         ✓  char-spinner       up-to-date (v1.0.1)
         ✓  columnify          up-to-date (v1.5.4)
         ✓  commander          up-to-date (v2.9.0)
         ✓  debug              up-to-date (v2.6.9)
         ✓  dtrace-provider    up-to-date (v0.8.7)
         ✓  ejs                up-to-date (v2.6.1)
         ✓  fields             up-to-date (v0.1.24)
         ✓  fs-extra           up-to-date (v0.26.7)
         ✓  inquirer           up-to-date (v0.11.4)
         ✓  ip                 up-to-date (v1.1.5)
         ✓  jsonpath           up-to-date (v1.0.0)
         ✓  jwt-simple         up-to-date (v0.3.1)
         ✓  lodash             up-to-date (v3.10.1)
         ✓  node-appc          up-to-date (v0.2.48)
         ✓  node-forge         up-to-date (v0.6.49)
         ✓  node-ios-device    up-to-date (v1.6.3)
         ✓  npm-conf           up-to-date (v1.1.3)
         ✓  pac-proxy-agent    up-to-date (v2.0.2)
         ✓  plural             up-to-date (v0.2.1)
         ✓  progress           up-to-date (v1.1.8)
         ✓  recursive-readdir  up-to-date (v2.2.2)
         ✓  request            up-to-date (v2.88.0)
         ✓  retire             up-to-date (v1.6.2)
         ✓  semver             up-to-date (v5.5.0)
         ✓  tar                up-to-date (v4.4.6)
         ✓  tiapp.xml          up-to-date (v0.2.2)
         ✓  titanium           up-to-date (v5.1.1)
         ✓  version-bump-prompt up-to-date (v3.1.2)
         ✓  which              up-to-date (v1.3.1)
         ✓  wrench             up-to-date (v1.5.9)
        
       Titanium SDK
         ✓  latest sdk         installed (v7.5.0.GA)
         ✓  selected sdk       up-to-date (v7.5.0.GA)
        
       Mac OS X Environment
         ✓  CLI Tools          installed
        
       iOS Environment
         ✓  Xcode              installed (10.1)
         ✓  iOS SDK            installed (12.1)
         ✓  WWDR cert          installed
         ✓  developer cert     installed (4 found)
         ✓  distribution cert  installed (1 found)
         ✓  dev provisioning   installed (4 found)
         ✓  dist provisioning  installed (10 found)
        
       Android Environment
         ✓  sdk                installed (/usr/local/share/android-sdk)
         ✓  tools              installed (v26.1.1)
         ✓  platform tools     installed (v28.0.1)
         ✓  build tools        installed (v28.0.3)
         ✓  adb                installed /usr/local/share/android-sdk/platform-tools/adb
         ✕  android            "android" executable not found; please reinstall Android SDK
         ✓  emulator           installed /usr/local/share/android-sdk/tools/emulator
         ✓  mksdcard           installed /usr/local/share/android-sdk/tools/mksdcard
         ✓  zipalign           installed /usr/local/share/android-sdk/build-tools/28.0.3/zipalign
         ✓  aapt               installed /usr/local/share/android-sdk/build-tools/28.0.3/aapt
         ✓  aidl               installed /usr/local/share/android-sdk/build-tools/28.0.3/aidl
         ✓  targets            installed (2 found)
         !  avds               no avds found
         !  ndk                Android NDK not found
        
       Java Development Kit
         ✓  jdk                installed (v1.8.0)
         ✓  java               installed /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java
         ✓  javac              installed /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/javac
         ✓  keytool            installed /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/keytool
         ✓  jarsigner          installed /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/jarsigner
        
       Intel® Hardware Accelerated Execution Manager (HAXM)
         ✓  compatible         
         !  installed          not found; install HAXM to use Android x86 emulator
        
       Network
         ✓  online             
         -  no proxy server configured 
         ✓  Network connection test 
         ✓  Java-based connection test 
        
       Directory Permissions
         ✓  home directory     
         ✓  titanium config directory 
         ✓  titanium sdk install directory 
         ✓  temp directory     
       
  9. Rakhi Mitro 2019-01-24

  10. Rakhi Mitro 2019-01-28

    Hello, We haven't heard back from you since our last response. I am just following up to check the status of this case and if you need further help on it. 

JSON Source