Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
PassingByThs opened this issue Feb 7, 2025 · 2 comments · Fixed by #814
Closed
Assignees
Labels
bug Something isn't working dap Debugging Adapter Protocol
Milestone

Comments

@PassingByThs
Copy link

PassingByThs commented Feb 7, 2025

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

@angelozerr
Copy link
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.

@PassingByThs PassingByThs 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 Feb 7, 2025
angelozerr added a commit to angelozerr/lsp4ij that referenced this issue Feb 7, 2025
@angelozerr angelozerr added bug Something isn't working dap Debugging Adapter Protocol labels Feb 7, 2025
@angelozerr angelozerr added this to the 0.10.0 milestone Feb 7, 2025
@angelozerr angelozerr self-assigned this Feb 7, 2025
angelozerr added a commit that referenced this issue Feb 7, 2025
@angelozerr
Copy link
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
Labels
bug Something isn't working dap Debugging Adapter Protocol
Projects
None yet
2 participants