How to test a package variable


#1

I’m trying to get the variable value from the package I’m working with.

I tried with this code:

coffeescript

allFiles = fs.readdirSync(pathtoMusic.toString())
file = 0
while(file < allFiles.length)
      fileName = allFiles[file++]
      console.log(fileName)

Is there a way to debug the package and get the values in real time, or by the console. The thing is that I don’t know how to see the console log results.


#2

I forgot this question. XD
The solution was easy. To see the console log.
I did it with the Windows: Toggle Dev Tools command,

or with the short-cut.

Ctrl + Shift + I


#3

Hi.

You might find this of interest too:
http://flight-manual.atom.io/hacking-atom/sections/package-word-count/#understanding-the-generated-code

Focus on what atom.workspace.addModalPanel() does.

Cheers.