Cannot set breakpoint in VSCode

Hi, I’m following the article for debugging forge tunnel with VSCode. I am able to start and attach the debugger

=== Bundling code...
✔ Functions bundled.

Listening for requests...

Debugger listening on ws://0.0.0.0:9229/54afcafa-6669-4cc4-85e4-9a3939f7dd85
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.

But when I go to set a breakpoint in my index.js file I get an unbound breakpoint error.
image

When I check to see what scripts and sourcemaps are loaded, I only have an index.cjs file. Should I expect to see some *.js.map sourcemaps?

> node -v
v18.19.0
> npm -v
10.2.3
> -g list | grep forge
├── @forge/cli@10.5.0

Thanks

we bundle it as inline-source-map so there is only 1 file *.cjs and no source map.

But when I go to set a breakpoint in my index.js file I get an unbound breakpoint error.
if this is the case, can you try to trigger the app in the first time to invoke the code locally so that the VS Code can load/recognize the *.csj file properly. Then, set the breakpoint. Then trigger the invocation again. Please let me know whether it helps

Hello,

I have the same issue.

I have sucessfully run the app in my local instance using forge tunnel.

I have tried to run it again locally with forge tunnel and the additional debug options, but the breakpoint still can’t be set.

Would you have any other solutions?

Thanks