deno-docs
deno-docs copied to clipboard
Error in the debugging section?
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 offile_server.ts
. This is expected behavior caused by the way ES modules are evaluated in JavaScript (_constants.ts
is left-most, bottom-most dependency offile_server.ts
so it is evaluated first).
In my system, the DevTools pauses execution on os.ts
instead of _constants.ts
:

I'm using Deno 1.26.0 and Chrome 106.
Related: https://github.com/denoland/deno/issues/13908
requires investigation
In my follow-up test with deno 1.37.0, it currently stops at assertion_error.ts.
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.