Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Debugging in VS Code

ANSWERED

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

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

@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).

Peter McLennan
Gondwana Software

View best answer in original post

Best Answer
0 Votes
3 REPLIES 3

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.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

@Gondwana So if i understand you correctly Fitbit OS must support the debugging also? Is there another debug possibility besides using the console.log()?

Best Answer
0 Votes

@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).

Peter McLennan
Gondwana Software
Best Answer
0 Votes