Skip to content

What is the expected way to debug the native library? #29

Open

Description

@zahhak

As the native library is usually spawned by a nodejs code located outside of this repository - what is the expected way to debug the calls to the spawned process?

Activity

  1. zahhak commented on Dec 26, 2017

    @zahhak
    Author

    I guess it is done by waiting with lldb for the process spawn process attach --name ios-device-lib --waitfor (this could be done from xcode in debug -> attach to process by PID or Name)

  2. Mitko-Kerezov commented on Dec 29, 2017

    @Mitko-Kerezov
    Contributor

    That would depend on what you'd like to debug.
    If you'd like to debug the C++ code you could launch the binary directly and paste a message, connected to the section you'd like to debug manually. I've added some example messages in the docs.
    If you'd like to debug the Node.js you could write a sample script that reproduces some behavior and debug it in VS Code.

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