opened
skorfmann
username_0
## :rocket: Feature Request

### Affected Languages
<!--
Check the box (with an X) for any language runtime that you know is affected by
the reported bug. If you're uncertain whether a language is affected or not,
please leave the bux un-checked.
-->
- [ ] `TypeScript` or `Javascript`
- [x] `Python`
- [x] `Java` (haven't checked it)
- [x] .NET (`C#`, `F#`, ...) (haven't checked it)

### General Information
* **JSII Version:** <!-- Output of `jsii --version` -->
* **Platform:**     <!-- `uname -a` (UNIX) / Version of Windows -->
<!--
Check the box below (with an X) if you are able and willing to propose an
implementation for the requested feature. This does not imply a commitment from
you to actually do it!
-->
* [ ] I may be able to implement this feature request

### Description

When errors are occurring in one of the generated language targets, it's not possible by the stack trace to see where the error was originating from. See this stack trace for an AWS CDK app:

```json
        "/foo/foo/Resource": [
          {
            "type": "aws:cdk:logicalId",
            "data": "foo6445C170",
            "trace": [
              "new Bucket (/private/var/folders/zl/z8nc41qs7010qsfngfc_z1zc0000gn/T/jsii-kernel-ZbnPBD/node_modules/@aws-cdk/aws-s3/lib/bucket.js:387:26)",
              "/Users/sebastian/projects/cdk/tmp/foo/.env/lib/python3.7/site-packages/jsii/_embedded/jsii/jsii-runtime.js:7915:49",
              "Kernel._wrapSandboxCode (/Users/sebastian/projects/cdk/tmp/foo/.env/lib/python3.7/site-packages/jsii/_embedded/jsii/jsii-runtime.js:8388:20)",
              "Kernel._create (/Users/sebastian/projects/cdk/tmp/foo/.env/lib/python3.7/site-packages/jsii/_embedded/jsii/jsii-runtime.js:7915:26)",
              "Kernel.create (/Users/sebastian/projects/cdk/tmp/foo/.env/lib/python3.7/site-packages/jsii/_embedded/jsii/jsii-runtime.js:7659:21)",
              "KernelHost.processRequest (/Users/sebastian/projects/cdk/tmp/foo/.env/lib/python3.7/site-packages/jsii/_embedded/jsii/jsii-runtime.js:7439:28)",
              "KernelHost.run (/Users/sebastian/projects/cdk/tmp/foo/.env/lib/python3.7/site-packages/jsii/_embedded/jsii/jsii-runtime.js:7377:14)",
              "Immediate._onImmediate (/Users/sebastian/projects/cdk/tmp/foo/.env/lib/python3.7/site-packages/jsii/_embedded/jsii/jsii-runtime.js:7380:37)",
              "processImmediate (internal/timers.js:456:21)"
            ]
          }
        ]
```

It looks similar for `cdktf` apps, see this issue for more context: https://github.com/hashicorp/terraform-cdk/issues/131

### Proposed Solution
<!--
Whenever relevant, describe how you would like the feature to be implemented.
Include any documentation that can help understand your idea in very concrete
ways, such as code examples that leverage your feature, captures of design
diagrams, ...
-->

It would be good to see a reference to the code in the respective language (e.g. Python), rather than having JS stack traces only.
Cross Platform Error Stack Traces
issue
created
RomainMuller
username_1
This is a duplicate of #47
comment
closed
RomainMuller
username_1
issue