eclipse-jdt / eclipse-jdt/eclipse.jdt.debug

Cannot set conditional debug breakpoint, watching or inspecting expressions in external maven / gradle sources

Open
#683 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
23
Forks
68
Avg merge
1d 4h
Merged PRs (30d)
13

Description

I'm having the same problem described in https://bugs.eclipse.org/bugs/show_bug.cgi?id=542089 with Eclipse IDE 20250306-0812 (4.35.0) when debugging an external code (method `org.springframework.context.annotation.ComponentScanAnnotationParser.parse(AnnotationAttributes, String)` located in `%USERPROFILE%\.gradle\caches\modules-2\files-2.1\org.springframework\spring-context\6.2.2\4fd127d020a521693cd10f32732fbd053042f933\spring-context-6.2.2-sources.jar`) running in Wildfly debug mode (I'm using JBOSS Tools ).

Variables defined in external maven / gradle sources display when:
a) Watched, gives no results (blank):

![Image](https://github.com/user-attachments/assets/c901c8a4-551d-41f0-bbbc-ac45a02c9808)

b) Inspected, results in the following message:

> Unable to evaluate the selected expression:
>
> To perform an evaluation, an expression must be compiled in the context of a Java project's build path. The current execution context is not associated with a Java project in the workspace.

![Image](https://github.com/user-attachments/assets/90b52d08-f668-4099-9dd5-1fba0a50a95a)

c) Have a conditional breakpoint set, results in the the following message:

> Conditional breakpoint has compilation error(s).
>
> Reason:
> Unable to compile conditional breakpoint - missing Java project context.

![Image](https://github.com/user-attachments/assets/c24b8ae9-d478-4db5-962f-a2695186ec92)

![Image](https://github.com/user-attachments/assets/46f5657f-0755-4fbe-a3ae-19ed66bc739c)

Am I missing something in order to be able to fully debug external sources running in Java application servers?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.