D
Deno

help

Debugging test in VSCode always breaks on line 54 of colors.ts

Ffrank02688/25/2023
When debugging tests in VSCode the debugger always breaks on line 54 of colors.ts. This behavior is very annoying as I've set no breakpoints in that file. Is there a way to prevent this behavior?
No description
LLeokuma8/25/2023
Can you share a snippet of your code so that I can try to reproduce the problem?
Ffrank02688/25/2023
import { assertEquals } from "https://deno.land/std@0.199.0/assert/assert_equals.ts"; Deno.test("hello", () => { assertEquals("hello", "hello"); });
Debug the test and the VSCode debugger stops at line 54 of Colors.ts
Ffrank02688/25/2023
No description
Ffrank02688/25/2023
No description
Ffrank02688/25/2023
No description
Ffrank02688/25/2023
Looks like it's happening because of something going on in the import. If I don't import assertEquals, then I don't get the unexpected break in colors.ts.
LLeokuma8/25/2023
Yea now I can confirm this is a "UX bug" in the Deno VS Code extension I think I've tried to fix it in the past. I'll look into it again as the Deno LSP/Inspector has gone through some updates and maybe it's easier to fix that now
Ffrank02688/25/2023
Thank you!
Ffrank02688/25/2023
I filed a formal issue in the Deno VS Code extension: https://github.com/denoland/vscode_deno/issues/896
GitHub
Debugging tests that import assertEquals (and maybe others) breaks ...
Describe the bug When debugging tests in VSCode that import assertEquals the debugger always breaks on line 54 of colors.ts despite not having any explicit breakpoint set for that file/line. To Rep...

Looking for more? Join the community!

Recommended Posts
Building from `src` offline?Hey guys! I'm new to Deno (and web dev as well to be honest), so could you help me here please. I'Any plan to fix Deno.listenTls() timing out a WebSocket connection?Any plan to fix Deno.listenTls() timing out a WebSocket connection? ``` {code: 1001, reason: 'No rePlaying sound from fileHow can i play the sound from a local file using deno?Deno with the --inspect-wait arg doesn't expose /json/protocol - should it?I'm testing out connecting to a Deno process via the v8 inspector protocol: https://deno.land/manual`deno test` and VSCode test runner are failing to run all test filesIn my Fresh projects, I'm trying to run all my tests with a single command. This used to not be an iHelp on Deno deploy that failsHi all, I'm having an issue on Deno deploy that states as follow: 'Error: The deployment failed: MoDeno console.log() all items of arrayHey how can I enable all of the output, so that Deno does not cut of items?Hey! i can't to download denoHEY~ I am a Taiwanese people so my English not good but I have a question My PowerShell show this Closing a fileHow do I close a file after opening and streaming it? My handler function code is as follows: ``` repuppeteer makes script to hang for a while at the endI am using `npm:puppeteer` in my script. Everything is working fine. But often the script hangs at tIn Fresh, how do I return a JSON response in a middleware?In Fresh, how do I return a JSON response in a middleware?get length for KV list via prefix?Is there a fast way to get just the count of items for a prefix?Property 'params' does not exist on type 'Context<State, Record<string, any>> ... what to do?I want to access params in oak, but typescript complains. What can I do about that? Thanks.What is the std library for making a guessing game like shown in rust?```rust use std::io; fn main() { println!("Guess the number!"); println!("Please input youData must be valid JSONA simple project, after successful deployment, reports an error "Data must be valid JSON".FFI deno_bindgen, how to see build logs?Hi, using deno_bindgen for rust, is there anyway i can view the build logs? --verbose or -v do not sTypeError: str.split is not a functionHey Gang. Im following along this tutorial: https://deno.com/blog/build-a-blog-with-fresh But I am Can't sign up/sign in to Deno DeployI'm tired of this error. Does anybody know the reason or at least how to solve it?CSP Middleware for OAK?Just wondering what the best module is for this? I noticed SNELM but that hasn't been updated in abExternal dependencies with npm specifier in combination with vite does not work.Hi, I am new to Deno and want to build an app with deno, vite and react. Unfortunately the dependenc