You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An option flag or environment variable that causes tsx to print the path to the generated JS code before executing.
Why?
I would like to be able to view the generated JS code to assist debugging. I know it is cached in $TMPDIR, so tsx could print the path to help finding it.
Alternatives
Alternatively, an option to dump the generated code straight to stdout/stderr before running.
Or maybe debugging options I have missed?
Or I could just compile my code directly using esbuild/tsc for debugging. But knowing exactly what code tsx is producing is useful, in case the result of using esbuild/tsc is not the same for whatever reason (different version, different config, etc.).
Additional context
Debugging is difficult due to error stack traces referencing generated JS, not the source. Have I missed something? I have tried enabling sourceMaps in tsconfig but still don't seem to be getting useful error stack traces. (I guess stack traces is a separate issue)
Thank you.
The text was updated successfully, but these errors were encountered:
Feature request
An option flag or environment variable that causes tsx to print the path to the generated JS code before executing.
Why?
I would like to be able to view the generated JS code to assist debugging. I know it is cached in $TMPDIR, so tsx could print the path to help finding it.
Alternatives
Alternatively, an option to dump the generated code straight to stdout/stderr before running.
Or maybe debugging options I have missed?
Or I could just compile my code directly using esbuild/tsc for debugging. But knowing exactly what code tsx is producing is useful, in case the result of using esbuild/tsc is not the same for whatever reason (different version, different config, etc.).
Additional context
Debugging is difficult due to error stack traces referencing generated JS, not the source. Have I missed something? I have tried enabling sourceMaps in tsconfig but still don't seem to be getting useful error stack traces. (I guess stack traces is a separate issue)
Thank you.
The text was updated successfully, but these errors were encountered: