News for hackers. Stuff that matters.
Re:Easily debugging Meteor.js by jggonz on Friday July 17, 2015 @11:53AM (#9903320)
I've been playing with Meteor since 0.5 and only recently discovered the WebStorm IDE. I HIGHLY recommend it even for personal projects. It has built in support for meteor, and gives you a truly powerful debugging environment. You can set breakpoints and examine the state of the app (var values, etc...) while viewing the console within the IDE itself. It also has a Chrome plugin that allows the IDE to launch and debug apps in the browser.

Here's the link to download the 30 day trial: https://www.jetbrains.com/webstorm/

Simple set up instructions: https://www.jetbrains.com/webstorm/help/using-meteor.html

Re:Easily debugging Meteor.js by jakozaur on Friday July 17, 2015 @10:36AM (#9902928)
Also worth checking: http://meteor.toys/

Most useful and free version: http://mongol.meteor.com/

Re:Easily debugging Meteor.js by rywalker on Friday July 17, 2015 @10:16AM (#9902805)
Great points Josh - it's pretty common for new Meteor devs to rely only on console.log - this is a valuable reminder of all the other options for stepping up our debugging game :)
Re:Easily debugging Meteor.js by joshowens on Friday July 17, 2015 @10:17AM (#9902813)
Thanks. I was on the fence about listing testing as another form of debugging. Didn't feel right, but maybe I will write a separate article on that at some point.
Re:Easily debugging Meteor.js by engelgabriel on Friday July 17, 2015 @10:35AM (#9902915)
Cool reference guide. The https://github.com/rclai/meteor-ddp-inspector is also helpfull!
Re:Easily debugging Meteor.js by joshowens on Friday July 17, 2015 @10:41AM (#9902956)
Jeez, I should have totally mentioned how to use Chrome to see the DDP data. You don't really need a separate package for it.
Re:Easily debugging Meteor.js by engelgabriel on Friday July 17, 2015 @01:33PM (#9903890)
True, I send the wrong link anyway. I meant https://github.com/arunoda/meteor-ddp-analyzer
Re:Easily debugging Meteor.js by claudiojulio on Friday July 17, 2015 @01:23PM (#9903828)
How to do this? Do you have any link explaining? Thanks for the great article!
Re:Easily debugging Meteor.js by jonbaer on Friday July 17, 2015 @01:22PM (#9903814)
Another good tool is Kadira Debug, a screencast can be found @ https://www.meteorcasts.net ...
Re:Easily debugging Meteor.js by scheda on Friday July 17, 2015 @10:33AM (#9902897)
Huh. Never new about meteor debug. That's pretty awesome.
Re:Easily debugging Meteor.js by dsiegel2275 on Friday July 17, 2015 @12:27PM (#9903506)
Same here. Though I have a Webstorm license and that has worked quite well for the server side debug. Good to know though that 'meteor debug' exists.
Re:Easily debugging Meteor.js by joshowens on Friday July 17, 2015 @10:41AM (#9902954)
Thanks. Yeah, always one of those 'wow' moments during my Mastering Meteor class :)
Re:Easily debugging Meteor.js by sergiotapia on Friday July 17, 2015 @10:35AM (#9902912)
I wonder why meteor debug wasn't advertised more by the core team, it looks like a pretty neat feature. I'm going to give it a whirl!
Re:Easily debugging Meteor.js by joshowens on Friday July 17, 2015 @10:40AM (#9902952)
It is a neat feature. I also hear that it will persist changes from node-inspector web interface back to your code itself... I didn't mention in the article as I didn't have time to confirm it myself.

Yeah, I am thinking of adding a debugging section as a PR to the Meteor docs.

Re:Easily debugging Meteor.js by nicoles on Friday July 17, 2015 @11:51AM (#9903314)
My main issue with meteor and debugging is that getting into node-inspector inside of a velocity test is seemingly impossible. Any ideas?
Re:Easily debugging Meteor.js by marceloschmidt on Friday July 17, 2015 @10:31AM (#9902891)
Thanks josh! It's always good to remember some of the lesser used functionalities, such as meteor debug.
Re:Easily debugging Meteor.js by joshowens on Friday July 17, 2015 @10:46AM (#9902974)
If you enjoyed the article, retweets are appreciated: https://twitter.com/joshowens/status/622022975584342016

Thanks for reading everyone!