CoffeeScript expressions in Webstorm debugger evaluate expression window

Hi,

It seems that CoffeeScript syntax is not supported in Webstorm 2016.2.3 for debugging expressions as shown in the print screens below:

- @ as a abbreviation for 'this' returns a syntax error;

- so does array[1..] as an abbreviation for array.slice(1).

Is that correct?

I did not install a CoffeeScript file watcher as I read in this other thread 

https://intellij-support.jetbrains.com/hc/en-us/community/posts/206314709-Debugging-Coffee-Files-in-Meteor-App-Project

that it should not be done for Meteor apps adding the Atmosphere CoffeeScript package

Thanks.



 

6 comments
Comment actions Permalink

OK so not accepting the CoffeeScript array slicing syntax is a registered bug.

But what about not accepting the @ abbreviation for 'this'? Is it also a registered bug?

This is way more serious since, as I understand it, this and @ refer to a different object when @ is used inside the context of methods and functions defined with the fat arrow =>. So is it the case that for those, Webstorm's debugger does not in fact provide any support and hence forces us to fall back to console.log messages to debug code with fat arrows?

 

 

0
Comment actions Permalink

https://youtrack.jetbrains.com/issue/WEB-23608 is not about array slicing syntax, it's about ANY coffeescript syntax in watches/evaluate expressions/etc. In order to get the correct result, use the javascript expressions there. It's actually not a bug, it's a missing (complex) feature, because existing sourcemaps can hardly be used here; as far as I can see, Chrome DevTools debugger doesn't work here as well - it behaves in the same way as WebStorm

0
Comment actions Permalink

Thanks for the clarification.

Does the WebStorm debugger supports the EmacScript 6 syntax in watches/evaluate expressions? Or only the EmacScript 5 syntax?

0
Comment actions Permalink

I meant EcmaScript of course ...

0
Comment actions Permalink

EcmaScript5 only...

0

Please sign in to leave a comment.