Git Product home page Git Product logo

Comments (5)

hampoelz avatar hampoelz commented on August 9, 2024

Unfortunately, these steps are required to get your node.js project running on mobile devices. And if I'm informed correctly, the node.js mobile toolkit doesn't currently support to attach a debugger.

But you could test/debug your node.js part separately from your app by running it locally as a standalone project. You could then use all Node.js debug features. But you'd need to add some kind of a wrapper bridge to simulate the message exchange between the Node.js project and the application.

from capacitor-nodejs.

jadejr avatar jadejr commented on August 9, 2024

Wouldn't it be possible to open the debugger port optionally? Or is that not available via the embedded API?

from capacitor-nodejs.

hampoelz avatar hampoelz commented on August 9, 2024

No, unfortunately not.

The nodejs-mobile toolkit, which is used in this project to embed Node.js in mobile applications, doesn't provide the intl (internationalization) module. And since the V8 inspector depends on this module, the inspector/debugger is currently not available, according to the nodejs-mobile documentation. (see https://nodejs-mobile.github.io/docs/api/differences)

from capacitor-nodejs.

jadejr avatar jadejr commented on August 9, 2024

I currently use a build with intl (with small icu) so it works fine. The author of nodejs-mobile will likely make a build with intl. It increases the size by 10mb, so he might want to want provide it separately. If you can make it condtional on intl's existence, then I can try it out.

from capacitor-nodejs.

hampoelz avatar hampoelz commented on August 9, 2024

Oh, I didn't know that. Yeah, if there will be a nodejs-mobile build with the intl module enabled / that supports debugging, I'll definitely consider this for the plugin.

from capacitor-nodejs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.