Comments (5)
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.
Wouldn't it be possible to open the debugger port optionally? Or is that not available via the embedded API?
from capacitor-nodejs.
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.
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.
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)
- Could not run on device only in debug mode HOT 5
- node.js upgrade HOT 10
- Add TypeScript Declaration File for Bridge Package HOT 1
- Example Project HOT 8
- Allow manual startup of the node.js runtime and pass environment variables HOT 5
- Separate example projects in a new repo HOT 2
- npm install failed HOT 2
- Cannot find module 'bridge' on Android HOT 1
- Upgrade to CapacitorJS v5
- Rewrite the Bridge package in TypeScript
- Start the node.js runtime as child process on ElectronJS
- support for native node modules build HOT 5
- Did you rebase the main branch? HOT 1
- How does one use the new builtin bridge package from the node project? HOT 6
- Add a method to stop nodejs HOT 1
- How to use manual mode start? HOT 4
- iOS support? HOT 13
- How do I use this plugin in Quasar's capacitor. HOT 3
- Execution failed for task ':capacitor-nodejs:compileDebugJavaWithJavac'. > error: invalid source release: 17 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capacitor-nodejs.