Can you debug node on a linux server remotely from webstorm on windows?

On Tue, Jan 7, 2014 at 8:45 PM, Seth Pollack <[email protected]> wrote:

> The way we debug our code is via the WebStorm debugger, and we run
> Streamline with the fibers backend. This experience is very slick -- you
> are debugging the streamline source files, you can set breakpoints, step
> across async function invocations in a natural way without having to add a
> bunch of temporary breakpoints, etc. I've had several requests to demo
> this, so as soon as i get a bit of time i'll record a screencast that
> demonstrates this.
>
> If you are a command line debugger / callbacks backend person, streamline
> also has source map support (https://github.com/mozilla/source-map) to
> allow debugging via the source files. (although i haven't played around
> with it myself yet)
>
> Seth
>
> On Tuesday, January 7, 2014 6:45:25 PM UTC-8, Alex Kocharin wrote:
>>
>>
>> I run "node_ test._js", then "node debug -p `pidof node`" (node_ doesn't
>> have debug option), and that's the code I see:
>>
>> ```
>> debug> c
>> break in test._js:4
>>   2     debugger ;
>>   3     return setTimeout(__cb(_, __frame, 2, 0, function __$main() {
>>   4       debugger ;
>>   5       console.log("... world"); _(); }, true), 10000);
>> });}).call(this, __trap);
>>   6 });
>> ```
>>
>> And this is an example stack trace:
>>
>> ```
>> Error: xx
>>     at __$main (/tmp/node_modules/zz/test._js:5:16)
>>     at ___ [as _onTimeout] (/tmp/node_modules/streamline/
>> lib/callbacks/runtime.js:100:13)
>>     at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)
>> ```
>>
>> Needless to say, I don't remember writing any of these underscore
>> methods. And as I said earlier, I avoid compilers for this exact reason.
>> Personally, I'd much rather stick to the callbacks and not trade writing
>> time for debugging time. But if you're using a compiler anyway, I'd rather
>> look for await/defer features of IcedCoffeeScript because it comes with
>> much more obvious syntax.
>>
>> PS: yes I know, it's possible to use fibers or generators or whatever
>> with streamline. But I can use them without streamline just as well, and
>> it'd be much easier.
>>
>>
>>
>  --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to