debug extensions in vscode from src files #1605
Unanswered
BrettBedarf
asked this question in
Q&A
Replies: 1 comment
-
Hi @BrettBedarf, I'm not too familiar with debugging in VS Code (I'm a WebStorm guy myself), but one tip I can share: if you set the id property on your UI extension object, it will use that string rather than a hash. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to figure out how to debug extensions in vscode. I'm running vendure in dev mode with the default config and
compileUiExtensions
to add the extension which is running fine on port3000
.I tried attaching to the port
3000
server which almost worked. I could trigger a breakpoint with thedebugger;
statement but it goes to the generatedadmin-ui
directory. Setting gutter breakpoints from within that generated directory works so I believe it's a path mapping issue but over my head. Is there a way to map to the original source files? It's not the end of the world, but the extension names are replaced with uuid so I have to figure out which directory and have to have compiled debugging file open side-by-side with source to make edits.Beta Was this translation helpful? Give feedback.
All reactions