Patrick (he/him)
Patrick (he/him)15mo ago

How to use chrome devtools / inspector with Deno?

Hello all! I'd like to profile my game server written in Deno to identify the hot spots. I see that https://github.com/denoland/deno/pull/4484 was closed, but having trouble pulling up info on how to use it. I've tried running my server with the --inspect flag, opened the chrome's Nodejs inspector, added localhost:8000, but it doesn't connect to/recognize the server process. Any advice? Thanks in advance x 1000
6 Replies
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Patrick (he/him)
Patrick (he/him)15mo ago
oh I see. I was putting it after the --watch flag, which currently causes it to ignore the --inspect flag. If I put it before then it lets me know that these flags cannot be combined. It works as expected if I take out the --watch flag.
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Patrick (he/him)
Patrick (he/him)15mo ago
Yep, you are correct. Thank you.
Patrick (he/him)
Patrick (he/him)15mo ago
I got it to work once... Mostly been getting this error
Patrick (he/him)
Patrick (he/him)15mo ago
to clarify, I get that whenever (well 90% of the time) I try to use the record button in the performance panel