radiegtya / meteoris2

a Realtime Javascript Boilerplate base on Meteor Js Framework
MIT License
246 stars 46 forks source link

debuging meteoris (webstorm) using sudo #43

Open came opened 9 years ago

came commented 9 years ago

Meteoris needs to be started with sudo. I want to debug meteoris with webstorm. However, I have not found a way how webstorm could start debugging meteoris with sudo. How could I do that / what is your solution debugging meteoris?

radiegtya commented 9 years ago

actually I never using webstorm. :) would You mind to share how to debug using webstorm? maybe I can help if I know the basic

came commented 9 years ago

Well. Normally you just have to set a breakpoint have a default config (see: attachment) and just start debugger. It stops at each breakpoint and lets you see what happens ;) Everything runs pretty smothly until you need to run meteor with sudo. So far I haven't figured out a way to start debugging in webstorm with sudo meteor.

run_debug_configurations

came commented 9 years ago

I read that starting webstorm with sudo should solve the problem. However, when I run or debug meteoris with webstorm it does not work (is there a way using meteoris without sudo?)

BR, Carsten

radiegtya commented 9 years ago

Have You tried chmod it?

came commented 9 years ago

ok, i chmod 777 .meteoris ...now it is debugging, but is this the correct way to go?

radiegtya commented 9 years ago

it's ok while it was just development version app. when You hit the production app, it's meteoris folder are not used, it will be build first into a production bundle. So it's ok that You chmod it on development version of Your app