-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Document how to enable source map support #1579
Labels
feature-request
A feature should be added or improved.
Comments
otterley
added a commit
to otterley/aws-cdk
that referenced
this issue
Jan 20, 2019
Install source map support so we get useful backtraces on uncaught exceptions. Fixes aws#1579.
This was referenced Jan 20, 2019
otterley
added a commit
to otterley/aws-cdk
that referenced
this issue
Jan 20, 2019
Add source map support to the TypeScript app entry point template. This won't retroactively fix existing CDK apps, but it will ensure that apps generated in the future via `cdk init --app` will have it enabled. Fixes aws#1579
otterley
added a commit
to otterley/aws-cdk
that referenced
this issue
Jan 20, 2019
Add source map support to the TypeScript app entry point template. This won't retroactively fix existing CDK apps, but it will ensure that apps generated in the future via `cdk init --app` will have it enabled. Fixes aws#1579
The following should work:
Maybe we can integrate this in a nice way somewhere, and make it as zero-conf as possible. |
otterley
added a commit
to otterley/aws-cdk
that referenced
this issue
Jan 21, 2019
Add source map support to the TypeScript app entry point template. This won't retroactively fix existing CDK apps, but it will ensure that apps generated in the future via `cdk init --app` will have it enabled. Fixes aws#1579
rix0rrr
pushed a commit
that referenced
this issue
Feb 4, 2019
Add source map support to the TypeScript app entry point template. This won't retroactively fix existing CDK apps, but it will ensure that apps generated in the future via `cdk init --app` will have it enabled. Fixes #1579
moofish32
pushed a commit
to moofish32/aws-cdk
that referenced
this issue
Feb 5, 2019
Add source map support to the TypeScript app entry point template. This won't retroactively fix existing CDK apps, but it will ensure that apps generated in the future via `cdk init --app` will have it enabled. Fixes aws#1579
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, when an uncaught exception is encountered when running
cdk
, the backtrace is of the compiled Javascript code, not the TypeScript source. For example:This is easily remediable by running
require('source-map-support').install();
in the app entry point.If we do this, we get references to the original source:
The text was updated successfully, but these errors were encountered: