Skip to content

how to debug App? #13

Closed
Closed

Description

@bitcard

js can debug chrome or firebug or node-inspector, how to debug with NativeScript? thanks.

Activity

  1. bitcard commented on Mar 14, 2015

    @bitcard
    Author

    I test the appbuilder, but print the follow error.
    You are running an outdated version of the Telerik AppBuilder CLI. To run this command, you need to update to the latest version of the Telerik AppBuilder CLI. To update now, run 'npm update -g appbuilder'.

    the latest version is 2.8.2-324.

  2. ligaz commented on Mar 14, 2015

    @ligaz
    Contributor

    Hey @bitcard,

    You can debug NativeScript apps with NativeScript CLI using the tns debug command.

    You can also debug with our AppBuilder tool chain. Its CLI current latest version is: 2.8.3-331 as stated on npmjs.org: https://www.npmjs.com/package/appbuilder. Have you tried to update it using npm update -g appbuilder?

  3. bitcard commented on Mar 15, 2015

    @bitcard
    Author

    @ligaz thanks for your reply. yes, I have run the command "npm update -g appbuilder". but the result is same.

    I also use "tns debug android --debug-brk or tns debug android --debug-brk --debuggerPort 12345", the App can be installed and run on the device, guide from https://github.com/NativeScript/nativescript-cli/wiki/Debug-command-specification.
    "starts the app with ID com.example.MyApp with V8 debuggger enabled and waiting until debug client tools are connected", using what's dubug tools to connect?

  4. ligaz commented on Mar 15, 2015

    @ligaz
    Contributor

    About the AppBuilder issue can you npm cache clean followed by npm uninstall -g appbuilder and then npm install -g appbuilder in an attempt to install the latest version?

    Regarding the NativeScript CLI debugging I have recorded a short video that illustrates its basic usage. Hope you will find it useful.

  5. bitcard commented on Mar 16, 2015

    @bitcard
    Author

    @ligaz thanks a lot, it's so great, NativeScript CLI also using node-inspector to debug app.
    I will try appbuilder debug later.

  6. sunify commented on Mar 25, 2015

    @sunify

    What about debug in iOS Simulator?

    I try
    tns debug ios --debug-brk --emulator

    but get the error

    Check dependencies
    Code Sign error: No code signing identities found: No valid signing identities (i.e. certificate and private key pair) matching the team ID “(null)” were found.
    CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.2'
    
    ** BUILD FAILED **
    
    
    The following build commands failed:
        Check dependencies
    (1 failure)
    Command xcodebuild failed with exit code 65
    

    Dev account is required?

  7. PanayotCankov commented on Mar 25, 2015

    @PanayotCankov
    Contributor

    Up to v0.9.4 debugging in iOS was supported only for device connected through USB.
    We have already implemented debugging on emulator, it is merged in the master:
    NativeScript/nativescript-cli#339

  8. sunify commented on Mar 25, 2015

    @sunify

    Thanks!

  9. rclai commented on Nov 2, 2015

    @rclai
    Contributor

    If I wanted to debug an iOS app, would it only work in a Mac?

  10. added a commit that references this issue on Mar 20, 2019
  11. lock commented on Aug 30, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  12. locked and limited conversation to collaborators on Aug 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions