Skip to content

Single/double quotes displayed not correctly in watch area when debug TypeScript file #812

Closed

Description

@PassingByThs

I just got off vacation. Sorry I didn't respond to this issue #684 in time.
I've tried and I can debug TypeScript now.

Single/double quotes displayed not correctly in watch area when debug TypeScript file.

index.ts

let name1="name";
let name2='name';
let name3="'name'";
let name4="\'name\'";
console.log(`name1: ${name1}`);
console.log(`name2: ${name2}`);
console.log(`name3: ${name3}`);
console.log(`name4: ${name4}`);
console.log(`name1 == name2: ${name1 == name2}`);
console.log(`name3 == name4: ${name3 == name4}`);
console.log(`name1 == name3: ${name1 == name3}`);
console.log("end");

Console Out

Image

Value displayed in watch area. All displayed "'name'" for nam1,name2,name3,name4.

Image

Activity

  1. angelozerr commented on Feb 7, 2025

    @angelozerr
    Contributor

    For console output, I think I cannot do nothing. It is the result from the DAP server.

    For watch expression, I think IJ have an API which manages that, let me try it.

  2. changed the title [-]Single/double quotes displayed not correctly in warch area when debug TypeScript file[/-] [+]Single/double quotes displayed not correctly in watch area when debug TypeScript file[/+] on Feb 7, 2025
  3. added a commit that references this issue on Feb 7, 2025
    2a1f0e2
  4. added
    bug
    dap
    on Feb 7, 2025
  5. added this to the 0.10.0 milestone on Feb 7, 2025
  6. self-assigned this
    on Feb 7, 2025
  7. added a commit that references this issue on Feb 7, 2025
    fc97dde
  8. angelozerr commented on Feb 7, 2025

    @angelozerr
    Contributor

    @PassingByThs please install nighty build, it should be fixed. I think you are using an old version because inline value should be displayed:

    Image

    Inline value is not perfect, see https://github.com/redhat-developer/lsp4ij/blob/main/docs/dap/DAP.md#inline-value

    And I did a lot of change with UI and store of run configuration. I suggest that you deleted your run config and you recreate it by following doc at https://github.com/redhat-developer/lsp4ij/blob/main/docs/dap/user-defined-dap/vscode-js-debug.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugdap

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions