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

Error in the debugging section? #99

Open
xfq opened this issue Oct 1, 2022 · 3 comments
Open

Error in the debugging section? #99

xfq opened this issue Oct 1, 2022 · 3 comments

Comments

@xfq
Copy link

xfq commented Oct 1, 2022

https://deno.land/[email protected]/getting_started/debugging_your_code#chrome-devtools

You might notice that DevTools pauses execution on the first line of
_constants.ts instead of file_server.ts. This is expected behavior caused by
the way ES modules are evaluated in JavaScript (_constants.ts is left-most,
bottom-most dependency of file_server.ts so it is evaluated first).

In my system, the DevTools pauses execution on os.ts instead of _constants.ts:

Screen Shot 2022-10-01 at 15 51 20

I'm using Deno 1.26.0 and Chrome 106.

@GJZwiers
Copy link
Contributor

GJZwiers commented Oct 5, 2022

Related: denoland/deno#13908

@kwhinnery kwhinnery transferred this issue from denoland/manual Sep 15, 2023
@kwhinnery
Copy link
Contributor

requires investigation

@hashrock
Copy link
Contributor

In my follow-up test with deno 1.37.0, it currently stops at assertion_error.ts.

image

There was a report in the original issue that it is not possible to step over, but if I stepped over twice I got to _constant.ts. I don't know if this is the problem though.

image image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants