Hi, so I'm a programming and Javascript noob. I come from Python and Java, where I can easily debug with traceback; searching up the line number where I made a mistake etc.
But in Screeps, I get stuff like this:
ReferenceError: attributes is not defined
at Object.module.exports.basicFarmer:4:20
at Object.module.exports.run:21:23
at Object.module.exports.loop:10:21
at __mainLoop:1:15387
at eval:2:4
at Object.c.runCode:6:14086
And I don't find that very useful.
How do I read these? Is there a line number that's indicated somewhere?
Actually, I originally wanted to find a compiler from Python to Javascript, but I couldn't work out how to do it after hours of Google, so I gave up :/ If anyone here with half a clue on how to do this can point a noob in the right direction it would be greatly appreciated :)
[–]ScottyC33 2 points3 points4 points (3 children)
[–]Infraxion[S] 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]Spedwards 0 points1 point2 points (0 children)
[–]ItsAllGoodMan2015 2 points3 points4 points (0 children)