I’m sure this is a VSCode issue but I’m having iss...
# help
m
I’m sure this is a VSCode issue but I’m having issues debugging async functions when running from
sst start
. If the lambda is synchronous then it works great, but with some async functions (not all) the breakpoints bounce around when I click them. I know this means there’s an issue with the source maps but I’m a bit stuck. FWIW I am using the
launch.json
as recommended in the docs, and my
tsconfig.json
has (among a bunch of other things):
Copy code
"target": "ES2018",
"inlineSourceMap": true,
"inlineSources": true,
Any tips would be greatly appreciated! The SO posts on this topic haven’t been useful so far.
f
Hey @Matt Rozema, is it always the same functions that have this issue? Or does the issue pop up randomly?
m
@Frank - when it happens in a specific function, the issue is always there. I had one specific async function where it was having that issue, but then I made the function synchronous and the issue went away. I think it's pretty clearly a problem with source maps but I feel like this shouldn't be a problem with the maturity of the tools. I feel like I'm doing something wrong but I don't know what it could be!
f
hmm.. let me loop in @thdxr. He’s more familiar with typescript and source maps.
t
Hm I don't think I've had to do anything with tsconfig to get breakpoints to work
are you certain it's an issue with sourcemaps?
m
I’m not certain - just speculating.
j
@Matt Rozema would it be possible to create a sample repo with this so we can try and reproduce it?
m
I can try! I'd have to detangle a few things first, which would probably be a good exercise anyway!
j
Thank you!