Bug 562531 - Source not found when debugging TestNG Maven project
Summary: Source not found when debugging TestNG Maven project
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.15   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-27 12:25 EDT by Shawn Stamey CLA
Modified: 2024-04-08 16:54 EDT (History)
0 users

See Also:


Attachments
test app to reproduce bug (970 bytes, application/x-zip-compressed)
2020-04-27 12:25 EDT, Shawn Stamey CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shawn Stamey CLA 2020-04-27 12:25:12 EDT
Created attachment 282579 [details]
test app to reproduce bug

This is a new defect on 2020-03 and is reproducible with the simple test project I've attached.

Using right-click -> Debug As -> Java Application, it will find source code and you can step through the program as expected.

Using right-click -> Debug As -> TestNG Test, it will NOT find source code and you have to manually add the source code reference.

When I open Debug Configurations -> Source tab and expand "Default" entry, and compare 2019-12 with 2020-03 I see:
- For 2019-12: "test"
- For 2020-03: "classes - \test\target"

This observed behavior seems similar in the kind of issue to this defect from 2017: https://bugs.eclipse.org/bugs/show_bug.cgi?id=514914

I am opening a distinct bug on this, as 2019-12 didn't have the issue, and I'm unclear how an old issue could have affected it.

Please find the zipped test project to reproduce the behavior.
Comment 1 Eclipse Genie CLA 2022-04-18 02:54:56 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 2 Eclipse Genie CLA 2024-04-08 16:54:57 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.