Skip to content
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

Debugging / Sourcemaps? #38

Closed
rcoopr opened this issue Jul 25, 2022 · 5 comments
Closed

Debugging / Sourcemaps? #38

rcoopr opened this issue Jul 25, 2022 · 5 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@rcoopr
Copy link

rcoopr commented Jul 25, 2022

When debugging in vs code, breakpoints are shown in ./build/index.js and not in the original files. Is this expected / Is there a way to get full source map support?

@rphlmr rphlmr added the question Further information is requested label Jul 25, 2022
@rphlmr
Copy link
Owner

rphlmr commented Jul 25, 2022

Hello,

You can follow this link 😉

@rphlmr rphlmr closed this as completed Jul 25, 2022
@rcoopr
Copy link
Author

rcoopr commented Jul 25, 2022

I found the problem was caused by the mocks/index.js

require("tsconfig-paths/register");
require("ts-node").register({ transpileOnly: true });
require("./start");

Converting all mocks to plain js restored breakpoints in dev mode

@rphlmr
Copy link
Owner

rphlmr commented Jul 26, 2022

I found the problem was caused by the mocks/index.js

require("tsconfig-paths/register");

require("ts-node").register({ transpileOnly: true });

require("./start");

Converting all mocks to plain js restored breakpoints in dev mode

Oh, I'll try to see what I can do. Thx for your investigation.

@rphlmr rphlmr reopened this Jul 26, 2022
@rphlmr rphlmr added the enhancement New feature or request label Jul 26, 2022
@rphlmr rphlmr closed this as completed in 9f32cb3 Aug 5, 2022
@rphlmr
Copy link
Owner

rphlmr commented Aug 5, 2022

Thank you, @Froskk :)

@rcoopr
Copy link
Author

rcoopr commented Aug 6, 2022

There may be a more elegant solution that still allows ts in mocks, I think it's the ts-node register that is confusing the debugger. May look into it further if I find some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants