microsoft / microsoft/vscode-java-debug

[Feature]DCEVM: Cannot add break point for code that was created during running debug session

Open
#301 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ai-triaged breakpoint enhancement feature request voting
Dominant language
TypeScript
Stars
591
Forks
429
Avg merge
1d 9h
Merged PRs (30d)
19

Description

I use DCEVM to do hot code replacement alot. This works greate so far.
But when I try to set a breakpoint to the code that has been created while the debug session is running, I only get a greyed out breakpoint. The tooltip hint tells me to restart the debugging session.

Environment
  • Operating System: 10.12.6 (16G1314)
  • JDK version: 1.8.0_144
  • Visual Studio Code version: 1.23.0 (1.23.0)
  • Java extension version: 0.25.0
  • Java Debugger extension version: 0.9.0
Steps To Reproduce
  1. start debugger
  2. add code
  3. try to set breakpoint into newly created code
Current Result

greyed out breakpint

Expected Result

regular breakpoint that works

Additional Informations

DCEVM is used to inject code

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with DCEVM using the listed Java, VS Code, and extension versions, following the three provided steps. Trace how breakpoints are handled for code added during an active debug session; done means a breakpoint in newly created code is regular and works without restarting the session.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, vscode
Domain
devtools, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.