-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to set breakpoints using ES Module syntax #613
Comments
As @shazron mentioned we need to run the transpiled code itself and somehow link it back to the source via source maps https://github.com/apache/openwhisk-wskdebug/blob/1ec715d98136811bea30eb6a82b378d78e356252/src/kinds/nodejs/nodejs.js#L64-L67 |
Here's a hacky workaround for now:
Note: The steps modifying |
I believe what we want is to generate the source map for ESM actions during build time and when we run |
Nice workaround + investigation. Yes I think that's the approach we should follow. Would need some testing to make sure debugging works as expected with the transpiled file + source maps |
The debugger will still have to allow the root package.json file to have When i add it to mine, so that i can get the unit tests to work, the debugger results in:
Maybe the transpiled files should end in |
JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-1894 |
Describe the bug
Breakpoints can't be set in VSCode when debugging actions written in ES Module syntax.
Expected behavior
Breakpoints can be set and stopped at by VSCode debugger with actions written in ES Module syntax.
Additional context
The text was updated successfully, but these errors were encountered: