D
Deno

help

deno_runtime inspector service not starting...

Pprimoze11/22/2022
Hi! I'm embedding deno_runtime, and I can't get the inspector working. I set BootstrapOptions.inspect to true, and WorkerOptions maybe_inspector_server and should_break_on_first_statement. The server is set to listen on 127.0.0.1:9229. server in inspector_server.rs is called, and prints
Debugger listening on ws://127.0.0.1:9229/ws/5b5725e4-ac19-4f4d-ba1b-f6d44ce9430f
Visit chrome://inspect to connect to the debugger.
Deno is waiting for debugger to connect.
Debugger listening on ws://127.0.0.1:9229/ws/5b5725e4-ac19-4f4d-ba1b-f6d44ce9430f
Visit chrome://inspect to connect to the debugger.
Deno is waiting for debugger to connect.
but make_svc function is never called (I added some printlins), and netstat shows the port is not in use, and chrome doesn't find it either. Permissions are allow all, cert errors are ignored, I can post the entire setup if required... Everything is created and running inside run_local, and the versions are 0.160.0 and 0.86.0 for core and runtime respectively (but a few older versions also didn't work). What am I missing? Are there any other options relevant to starting the inspector service?
Bbartlomieju11/22/2022
not really, it should spawn a separate OS thread and start inspector server there is server function called at all?
Pprimoze11/22/2022
yes, server is called and there are no errors from hyper::server::Builder
Bbartlomieju11/22/2022
are you sure it doesn't hit other branches like with_graceful_shutdown? it's very strange that only service function wouldn't be called
Pprimoze11/22/2022
huh, you're right. that's the branch i didn't add the println before
Bbartlomieju11/22/2022
cool!
Pprimoze11/22/2022
i guess the inspector gets dropped, now i have to figure out why. thanks!
Bbartlomieju11/22/2022
yeah, you need to store the InspectorServer for the whole duration of the program
Pprimoze11/22/2022
yeah, i thought i did but i guess i was mistaken about some lifetime rules. anyway i found the issue immediately, thanks again

Looking for more? Join the community!

Recommended Posts
types not inferred from npm packagesim importing deepSignal an npm package with ts support however non of the returned types are inferreScraping Hackernews for Deno-related projectsHello, I scraped Hackernews using Deno and Puppeteer, now how do I process the text to find keywordsvscode unable to resolve typesI'm testing npm integration, simple lodash example ``` // @deno-types="npm:@types/lodash" import loConverting Typescript Types to JSON Schema (Props definition)?Folks, We're creating a CMS solution using Deno and Fresh. For our product goals, we want to dynamiWhat would the benefits for Deno + VueJS (for the frontend only) be?So basicly using: deno run --allow-read --allow-write --allow-env npm:create-vite-extra@latest deno VScode Deno Extensions produces constant errorsI am currently using Deno with Opine in order to rewrite an API from JS to TS. While Opine only is uProblem with Mongoose + authHi i followed the mongoose example provided by denoland, but if my local database has authenticatiodeno_core run files concurrentlyIs is possible to run multiple files concurrently using the `deno_core` crate?deno.lock multiple entry point best practicesHi, I just upgraded to 1.28.0 and realized that lock files are here by default for deno.json config About performanceif a function takes only one paramater and i pass unnecessary additional parameters would it affect deno_core Extension with Global AccessIs there a way to make a Deno Extension be accessed by `Extension.op()` instead of `Deno.core.ops.opHow to stop reading from a ReadableStream?```js let user for await (const data of readable) { if (data.user.id === 'user-id') { user = Deno.inspect, how to log class instances with gettersim trying to log a class instance that has getters in it, with `Deno.inspect` ```ts Deno.inspect(clhow to ssr preact (without fresh)i tried with preact render to string but it wouldnt ship any jsSynchronous read single line from Deno.stdinHi, how would I go about reading a single line from `Deno.stdin` synchronously?Closing a websocket server in a unit testHello, I'm an author of [rpc lib](https://github.com/deno-libs/rpc) and I'm currently writing unit tHow to cancel or abort .pipeTo()?I prefer not asking, but after I found (what I consider) an MDN easter egg, I realized this is probais it possible to change how tsx bundles to js?So I’m wondering if it’s possible to get Deno to convert ```jsx <div class="test">Potato</div> ``` tcan't load external modules when run as child process with Deno.spawnChildHi! This is really weird, but I'm trying to run deno scripts under another deno process with Deno.sp