The TypeScript "parser wrapper" is a Node.js program launched from the JavaScript extractor in order to extract TypeScript code.
The two processes communicate via a command/response protocol via stdin/stdout.
To debug the parser script:
-
Launch an extraction process with the environment variable
SEMMLE_TYPESCRIPT_NODE_FLAGS
set to--inspect
, or--inspect-brk
if you wish to pause on entry. -
Open VSCode and choose "Debug: Attach to Node process" from the command palette, and choose the process that looks like the parser-wrapper.