deno-docs icon indicating copy to clipboard operation
deno-docs copied to clipboard

Error in the debugging section?

Open xfq opened this issue 2 years ago • 3 comments

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.

xfq avatar Oct 01 '22 07:10 xfq

Related: https://github.com/denoland/deno/issues/13908

GJZwiers avatar Oct 05 '22 19:10 GJZwiers

requires investigation

kwhinnery avatar Sep 15 '23 21:09 kwhinnery

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

hashrock avatar Sep 25 '23 05:09 hashrock