How to test a package variable


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

I tried with this code:


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

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.


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



You might find this of interest too:

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