microsoft / microsoft/vscode-java-debug

cannot evaluate because of java.lang.IllegalStateException: Cannot evaluate, please specify projectName in launch.json..

未关闭
#843 17 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

ai-triaged evaluation question
主要语言
TypeScript
星标
591
派生
429
平均合并
1 天 9 小时
30 天内合并 PR
19

描述

I cannot evaluate an expression in VSCode debugging tomcat.

I have this error.
cannot evaluate because of java.lang.IllegalStateException: Cannot evaluate, please specify projectName in launch.json..

My launch.json

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Debug (Launch) - Current File",
"projectName": "My API",
"request": "launch",
"mainClass": "${file}"
}
]
}

Environment
  • Operating System: Windows 10
  • JDK version: 11
  • Visual Studio Code version: 1.46.1
  • Java extension version: v0.9.1
  • Java Debugger extension version: v0.26.0

Is there anything else that i should change in my launch.json?

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,在 Windows 10、JDK 11、VS Code 1.46.1 以及列出的 Java 扩展上,使用提供的 launch.json 复现表达式求值。查看包含 17 条评论的线程,确认是否有已确认的行为或解决方法;完成的标准是求值能够通过已记录的配置正常工作,或剩余的失败已被隔离。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, typescript, vscode
领域
devtools
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。