vscode-pwa | Bundle Visual Studio Code as Progressive Web Application
kandi X-RAY | vscode-pwa Summary
kandi X-RAY | vscode-pwa Summary
This is an experimental project and is under development.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of vscode-pwa
vscode-pwa Key Features
vscode-pwa Examples and Code Snippets
Community Discussions
Trending Discussions on vscode-pwa
QUESTION
I have a Lerna monorepo with 2 modules(packages): ps
and cli
.
ps
just exports a function whatever
which cli
imports.
When I try to debug this code using VSCode, however, my breakpoints stop on the generated Javascript files instead of my source Typescript files.
This has bothered me for hours and I have extensively played around with my tsconfig.json
and launch.json
as well as using vscode-pwa-analyzer
to see that VSCode is able to detect my source TS code but I cannot figure out a fix.
EDIT: I am using the following setup: macOS Big Sur v11.1 Node.js v14.8.0 Typescript v4.1.3
And here is a dump file of my above debug you can load to vscode-pwa-analyzer. I can see here that I get some Unbound Breakpoint errors.
...ANSWER
Answered 2021-Jan-13 at 11:34I replicated the problem, but I would say that this is the expected behavior.
Actually setting a breakpoint on a function declaration makes no sense.
If you change your whatever
function as a sync function (i.e. function whatever(): void
) you will see that VSCode doesn't let you to break on that line.
In the special case of an async
function we know that the function body is actually wrapped in a Promise
. Probably in this special case the typescript debugger let us to set a breakpoint on a function declaration line to let us check what happens outside the Promise
wrap.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vscode-pwa
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page