Skip to content

add docs for JS debugger in language docs#165

Merged
itowlson merged 3 commits intospinframework:mainfrom
karthik2804:add_js_debugger_docs
Feb 23, 2026
Merged

add docs for JS debugger in language docs#165
itowlson merged 3 commits intospinframework:mainfrom
karthik2804:add_js_debugger_docs

Conversation

@karthik2804
Copy link
Contributor

Adds docs for using the StarlingMonkey debugger with the JavaScript SDK for Spin.


#### Setup

First, make sure that the extension is installed. Next verify that the templates are new enough to support debugging. This can be verified by looking `.vscode/setting.json` and verifying if something like the following is configured:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe split this into "installing the extension" (once) and "setting up the project" (each project).


![JS debugger running](/static/image/docs/js-debugger-running.png)

**Note:** that the debugger currently does not follow sourcemaps for npm dependencies as some packages may not bundle the source code in the pacakge.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
**Note:** that the debugger currently does not follow sourcemaps for npm dependencies as some packages may not bundle the source code in the pacakge.
**Note:** The debugger currently does not follow sourcemaps for NPM dependencies, as some packages do not bundle the source code in the package.


**Note:** that the debugger currently does not follow sourcemaps for npm dependencies as some packages may not bundle the source code in the pacakge.

## Caveats
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure but it feels like this has come adrift from the stuff about APIs and packages that it more naturally lives with perhaps?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not follow this. Can you elaborate please?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "Caveats" section feels like it's talking primarily about APIs and packages. But it is now separated from the APIs and packages stuff by a long section about debugging - someone reading about the programming model will likely not check all the way to the bottom of the page to see it. So I am wondering if the debugging stuff should come after Caveats rather than before it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah got it. Moved the section above.

@itowlson
Copy link
Contributor

itowlson commented Feb 3, 2026

@karthik2804 Is this still on your radar? Sorry, I realise travel has thrown things out.

@karthik2804
Copy link
Contributor Author

@itowlson I will get to this today.

@karthik2804 karthik2804 force-pushed the add_js_debugger_docs branch 3 times, most recently from 701fe98 to f9c2093 Compare February 5, 2026 13:45
@karthik2804
Copy link
Contributor Author

This should now be ready for review.

Copy link
Contributor

@itowlson itowlson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly grammar/voice nitpicks but I do think we should reorganise the headings. The current structure is very very deep, but also very narrow (e.g. there is only one H3, so it's not grouping anything). Most of the rest is looking for consistency of voice. But the content looks fine.


#### Setup

##### Installing the Extension
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heading level 5?!?!?! Let's reassess the structure here. Maybe

## Debugging in VS Code
### Debugger Status
### Installing the Debugger
### Setting up a Project for Debugging
### Running a Project in the Debugger

(I don't feel that the "debugger is a work in progress" para needs to be a separate heading, this is just to retain the way you have it. For myself, I would make that note part of the front matter.)


![JS debugger running](/static/image/docs/js-debugger-running.png)

**Note:** The debugger currently does not follow sourcemaps for NPM dependencies, as some packages do not bundle the source code in the package.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the significance of this? Should we explain it in terms of what they can and cannot do, or will JS devs understand implicitly what this means for them?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated this to be more clear now. Let me know what you think.

karthik2804 and others added 3 commits February 23, 2026 10:03
Signed-off-by: Karthik Ganeshram <kganeshr@akamai.com>

small fixes based on suggestions

Signed-off-by: Karthik Ganeshram <kganeshr@akamai.com>
Co-authored-by: itowlson <github@hestia.cc>
Signed-off-by: Karthik Ganeshram <kganeshr@akamai.com>
Signed-off-by: Karthik Ganeshram <kganeshr@akamai.com>
Copy link
Contributor

@itowlson itowlson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - thank you!

@itowlson itowlson dismissed mikkelhegn’s stale review February 23, 2026 19:08

Issues have been addressed but user has not been able to re-review

@itowlson itowlson merged commit a2d292e into spinframework:main Feb 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants