winglang/wing
GitHub ã§èŠã--debug flag should show full SDK stack traces inflight
Open
#5,883 opened on 2024幎3æ11æ¥
good first issueðš sdkð bug
Repository metrics
- Stars
- Â (5,385 stars)
- PR merge metrics
-  (30d ã« merged PR ã¯ãããŸãã)
説æ
I tried this:
I ran wing test main.w with this code:
bring cloud;
let b = new cloud.Bucket();
test "call extern code" {
b.get("invalid-key");
}
This happened:
I get an error as expected:
fail â main.wsim » root/env0/test:call extern code
â Error: Object does not exist (key=invalid-key): Error: ENOENT: no such file or directory, open 'target/test/main.wsim/.state/c8962f0cd81d488253a50c5fab66f85708ed7b9545/files/8360c1a8d75639359aa1a0ebb0deb102'
â --> main.w:7:3
â | let b = new cloud.Bucket();
â |
â | test "call extern code" {
â 7 | b.get("invalid-key");
â | ^
â at /Users/chrisr/dev/wing-test/main.w:7:3
But if I'm trying to debug something internal to Wing SDK, I'd like to see all JavaScript code instead of seeing the stack trace stop at "b.get()".
I expected this:
Passing --debug flag should show an unfiltered (or at least, less-filtered) stack trace
Is there a workaround?
No response
Anything else?
No response
Wing Version
0.59.45
Node.js Version
20.9.0
Platform(s)
MacOS
Community Notes
- Please vote by adding a ð reaction to the issue to help us prioritize.
- If you are interested to work on this issue, please leave a comment.