You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
evaluation handler and stackframe proxy for handling InvalidStackFrameException (#131)
* 1. replace JdiObjectProxy with StackFrameProxy, because only stackframe uses it .
* 1. add a missing import.
* rename a variable
* fix compilation error after merge
* 1. add lock to prevent concurrent stackframe access
2. redefine the StackFrameProxy to only have thread and depth since the stackframe instance may be out of date
3. add stackframe provider and add logic to update stackframe during evaluation.
* add stackframe provider and add logic to update stackframe during evaluation.
* fix for a better flow
* fix for a better flow
* revert minor changes which is not needed.
* remove useless lines.
* clean evaluation inner states when the thread is to be continued.
* clean evaluation inner states when the thread is to be continued.
* lock on acquireEvaluationLock
* remove the duplicate expr check
* revert unneeded change
* refine if-else flow.
* redefine the lock
* change another method to override indicating sf is updated.
* rename some classes suggested by reviewer
* 1. refact variableProxy to contain thread reference,
2. stackframes/varaible/setVariable/evaluate will first gain the thread lock on stack frame manager.
* some minor changes of spaces and javadoc.
* convert to supplyAsync with try logic to handle lock
* Andy eval20 (#138)
* Redefine HCR event. (#133)
* Sequentially process debug requests (#135)
* bump version to 0.5.0 (#136)
* Redefine HCR event.
* bump version to 0.5.0
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* don't use lock
* don't use lock
* don't use lock
* Minor changes: indentation, rename code -> expression
Copy file name to clipboardExpand all lines: com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/DebugAdapterContext.java
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,8 @@ public class DebugAdapterContext implements IDebugAdapterContext {
Copy file name to clipboardExpand all lines: com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/IDebugAdapterContext.java
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -99,4 +99,6 @@ public interface IDebugAdapterContext {
Copy file name to clipboardExpand all lines: com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/IEvaluationProvider.java
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,6 @@
13
13
14
14
importjava.util.concurrent.CompletableFuture;
15
15
16
-
importcom.sun.jdi.StackFrame;
17
16
importcom.sun.jdi.ThreadReference;
18
17
importcom.sun.jdi.Value;
19
18
@@ -34,18 +33,20 @@ public interface IEvaluationProvider extends IProvider {
34
33
* Evaluate the expression at the given project and thread and stack frame depth, the promise is to be resolved/rejected when
35
34
* the evaluation finishes.
36
35
*
37
-
* @param projectName The java project which provides resolve class used in the expression
38
36
* @param expression The expression to be evaluated
39
-
* @param sf The stack frame of the evaluation task
40
-
* @return the evaluation result
37
+
* @param thread The jdi thread to the expression will be executed at
38
+
* @param depth The depth of stackframe of the stopped thread
Copy file name to clipboardExpand all lines: com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/handler/AttachRequestHandler.java
Copy file name to clipboardExpand all lines: com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/handler/ConfigurationDoneRequestHandler.java
Copy file name to clipboardExpand all lines: com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/handler/EvaluateRequestHandler.java
0 commit comments