Comments (8)
Hi,
for the most part I just use console.log and don't put breakpoints in.
Babel is just the transpiler so when you're working you'll want to always work in the src
directory. If you need to debug spark-protocol
as well, we use npm
link so that the node_module
references your spark-protocol
on disk. Then when I'm running npm start
in spark-server
I run npm start
in spark-protocol
as well so it build any changes there.
What exactly are you trying to debug?
from spark-server.
Solved with this guide.
https://www.youtube.com/watch?v=gxCCXXcqJfw
now i check how to use spark-protocol sources.
from spark-server.
Ahh.. you will probably need to hack on some things to make that work since we use the transpiled source (dist
folder) when running spark-protocol
in spark-server
from spark-server.
this should work:
- setup the webstorm debugger for spark-server project, for node interperter choose ./node_modules/.bin/babel-node(.cmd for windows)
- in spark-protocol:
npm link
and in package.json change main from./dist/index.js
to./src.index.js
- in spark-server:
npm link spark-protocol
- run the debugger
from spark-server.
Tnx, now i can debug!
from spark-server.
Can i contribute to this repository?
from spark-server.
Yeah, we'd love any additional help. What feature are you planning on building?
from spark-server.
Actually i need to put the data outs from devices in an "abstract container".
The container can be Mongo DB or anything else (in this moment i think fluentd + kibana).
I'm building a smarthome with particle photons and other devices that they connect in the same way to spark-server.
Anyway i can help to add "cluster/balancing" features, i have done that several times with others programs using ZeroMQ or memcache to share resources inside and outside the "server" and keepalived to balance or distribute the load over a fleet.
from spark-server.
Related Issues (20)
- .env not working if spark-server is used as dependency HOT 5
- Error on spark-server update-firmware HOT 4
- Response timeout for event: spark-server/call_device_function HOT 5
- ERROR: DeviceServer.js for local server HOT 2
- firmware device counter increases with failed flash attempts HOT 2
- Cannot upload device IDs with non-numeric characters
- Hook for device status change? HOT 3
- Is there a way to pass the contents of the publish event directly to MQ? HOT 7
- Memory Leak
- update-firmware requests failing HOT 3
- support for mesh devices HOT 1
- Function call returns error when firmware function returns zero HOT 6
- Electron session end after every 30 seconds HOT 5
- Throws error on starting spark-server HOT 1
- device names not accepted as deviceId - breaks particle-cli HOT 15
- Device.js/14528 on hostName: Device disconnected (cache_key=_5, deviceID=deviceid, duration=46.791, disconnectCounter=1) HOT 1
- Error with handshake process HOT 32
- Claiming / provisioning a devices without an deviceID HOT 5
- Does this still work? HOT 15
- Is there a renamed implementation of Particle.subscribe(particle/device/name); ? HOT 5
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 spark-server.