04-24-2020 10:35
04-24-2020 10:35
Hi,
I'm trying to use the debugger in VS code at first it gave errors about the imports. Now I launch the debugger in experimental mode but it still doesn't work it gives the error: "Error: Cannot find package 'user-settings' imported from C:\usingwords\Using-words\app\index.js" I did various NPM installs but it still gives this error. Anyone got an idea?
Kind regards, Robert
Answered! Go to the Best Answer.
04-25-2020 14:15 - edited 04-25-2020 14:17
04-25-2020 14:15 - edited 04-25-2020 14:17
@FitRobertUnfortunately, you understand correctly. 😉
console.log() is pretty much it.
When you use VS Code debugging with a browser, the browser (or a plugin) has hooks for debug communications. Same when you debug, eg, php (xdebug).
04-24-2020 13:53
04-24-2020 13:53
I don't think that sort of debugging is possible. It would require the runtime environment to support the VS code debugging API (eg, to support code stepping, inspection, etc), but it doesn't.
04-25-2020 02:47
04-25-2020 02:47
@Gondwana So if i understand you correctly Fitbit OS must support the debugging also? Is there another debug possibility besides using the console.log()?
04-25-2020 14:15 - edited 04-25-2020 14:17
04-25-2020 14:15 - edited 04-25-2020 14:17
@FitRobertUnfortunately, you understand correctly. 😉
console.log() is pretty much it.
When you use VS Code debugging with a browser, the browser (or a plugin) has hooks for debug communications. Same when you debug, eg, php (xdebug).