Skip to content

feat: --debug-app enables jsii stack traces#1623

Merged
aws-cdk-automation merged 2 commits into
mainfrom
huijbers/enable-jsii-sdtacks
Jun 12, 2026
Merged

feat: --debug-app enables jsii stack traces#1623
aws-cdk-automation merged 2 commits into
mainfrom
huijbers/enable-jsii-sdtacks

Conversation

@rix0rrr

@rix0rrr rix0rrr commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Recent Python and Java jsii clients can capture stack traces and send them to the JavaScript side, to end up in CDK stack captures.

Because this has performance implications, this is not done by default but requires the environment variable JSII_HOST_STACK_TRACES=1 to be set.

cdk --debug[-app] will now set this environment variable if it isn't already set, so that in debug mode the stack traces are captured appropriately. We leave the environment variable alone if it's already set, so that the user can explicitly opt out of this behavior by setting it to 0 beforehand.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

Recent Python and Java jsii clients can capture stack traces and send
them to the JavaScript side, to end up in CDK stack captures.

Because this has performance implications, this is not done by default
but requires the environment variable `JSII_HOST_STACK_TRACES=1` to be
set.

`cdk --debug[-app]` will now set this environment variable if it isn't
already set, so that in debug mode the stack traces are captured
appropriately. We leave the environment variable alone if it's already
set, so that the user can explicitly opt out of this behavior by setting
it to `0` beforehand.
@rix0rrr rix0rrr requested a review from a team June 12, 2026 13:22
@github-actions

github-actions Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@rix0rrr rix0rrr deployed to no-approval June 12, 2026 13:24 — with GitHub Actions Active
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.73%. Comparing base (16d8bc4) to head (9460b39).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1623   +/-   ##
=======================================
  Coverage   88.73%   88.73%           
=======================================
  Files          77       77           
  Lines       11359    11359           
  Branches     1585     1585           
=======================================
  Hits        10079    10079           
  Misses       1250     1250           
  Partials       30       30           
Flag Coverage Δ
suite.unit 88.73% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aws-cdk-automation aws-cdk-automation added this pull request to the merge queue Jun 12, 2026
Merged via the queue into main with commit aafc3c8 Jun 12, 2026
41 checks passed
@aws-cdk-automation aws-cdk-automation deleted the huijbers/enable-jsii-sdtacks branch June 12, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants