04-24-2020 10:35
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-24-2020 10:35
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

- Labels:
-
JavaScript
Accepted Solutions
04-25-2020 14:15 - edited 04-25-2020 14:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


04-25-2020 14:15 - edited 04-25-2020 14:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@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).
Gondwana Software

04-24-2020 13:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


04-24-2020 13:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.
Gondwana Software

04-25-2020 02:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-25-2020 02:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


04-25-2020 14:15 - edited 04-25-2020 14:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@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).
Gondwana Software

