Comments (9)
@oehme I noticed that this issue does contain the complete feature request from the bugzilla issue linked by @donat . This issue description does not cover JavaExec debugging which for me is more interesting than debugging unit tests.
Either this issue should be expanded to cover JavaExec's or a another issue should be created. Which one do you prefer?
Also I'd like to push for looking at this since it is the currently most upvoted issue.
from buildship.
Just take a look how Netbeans and IntelliJ Gradle integration looks like.
You can right click on a Gradle task in the tasks view and choose to run it in debug mode.
You can select any test method of class and choose to run it in debug mode which runs it using Gradle and NOT the IDEs internal test runner. In Intellij this requires an extra configuration step. On Netbeans works with through gradle out of the box.
from buildship.
The latest snapshot now contains the changes. If you are interested you can go ahead and try it out. Any give us feedback, please :)
from buildship.
Bugzilla issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=471730
from buildship.
Hi @staffanf! So I would just create a new issue GitHub issue with the explanation of the desired behavior and with a reference to this issue.
It would be awesome if the users could execute Gradle builds in debug mode within Eclipse. It's certainly a complex story to implement, so let us know if you need any help, we are happy to support your effort.
I think there are two ways to go. You could either
- start with a specification in a new GH issue and where we can discuss how the final state should look like, or
- create a prototype version which we could give feedback on how to proceed.
from buildship.
@donat Although I noticed this discrepancy I will not be contributing to this issue except for contributing use-cases/feedback/snapshot-testing.
Like many other, we are a mixed shop with some preferring Eclipse and others IntelliJ. I'm in group #2 but I'm also the one responsible for converting our builds to gradle so we would like features parity.
For me, not being able to debug JavaExec tasks is currently the biggest omission for Buildship compared to IntelliJs support.
For us, this currently this involves generating xml launch configurations from JavaExec's. This is kinda fragile since the xml specification is not a official eclipse spec and can be changed.
So I could create a new issue, but my guess is that those that have +1 this post are more interested in debugging JavaExec's than just tests since this issue was created from the bugzilla issue that specifically mentioned debugging tomcatRun.
But looking at the original bugzilla issue, @oehme was actually the only one mentioning either tests/JavaExec.
Maybe we there should be 3 separate issues depending on how different the implementation is?
- Debugging JavaExec's
- Debugging Test tasks (this current issue)
- Debugging any task, ie. debugging gradle logic
I would guess that people would want them in that order, although I could be wrong.
from buildship.
Sorry for the late reply. It's hard to tell what exactly the commenters and +1'ers want, but I'm willing to guess is that the biggest missing feature is the lack of Gradle option in the Debug as...
menu. But how exactly this feature should look like? I can imagine a couple of implementations (extending the Gradle editor, hooking into the Tasks view, etc) so we'll need an actual spec where we could discuss how this feature should look like. I'd say please go ahead and open a new ticket and elaborate on step no. 1.
from buildship.
I've merged the PR containing test debugging. There are a couple of enhancements I want to do, but this will enable clients to evaluate the feature using the latest snapshot before Gradle 5.6 comes out.
from buildship.
This is what one needs to do:
https://discuss.gradle.org/t/buildship-3-1-2-is-now-available/33034
from buildship.
Related Issues (20)
- Test classes and resources of dependency are in classpath even with without_test_code=true HOT 7
- Support JDK21/gradle 8.4
- Launch Group that runs gradle task with the post launch action set to wait for termination waits infinitely
- Update site pages incorrect in the user documentation HOT 4
- deadlock during startup HOT 8
- Use preferences to decide if tabs or spaces are used in build script editor
- [Mac] After update on Eclipse version 09.2023 Splash Screen upside down HOT 2
- Kotlin Language server does not work on Windows
- The 3.1.8 release does not exist but a new release is needed for SimRel HOT 1
- Please ship org.gradle.toolingapi source jar in p2 repo
- An internal error occurred during: "Install semantic highlighting". HOT 1
- Problems building java17 projects with Buildship 3.1.8 and Eclipse 202312 HOT 5
- Importing java-library builds via "Projects from Folder or Archive" does not work correctly
- Marker Property value is too long
- Gradle tasks fail to load upon Eclipse start, manual refresh works as expected HOT 2
- 'files' dependencies should be added to the module path when applicable
- Improve Eclipse refresh time
- Finish button grayed out when importing a Gradle Project using Java 1.8,0_401
- Caused by: BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 66 HOT 4
- Importing https://github.com/open-telemetry/opentelemetry-java doesn't create Eclipse projects
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buildship.