zed icon indicating copy to clipboard operation
zed copied to clipboard

Build and Debug support

Open WeetHet opened this issue 2 years ago • 79 comments

Describe the feature

In most of today's code editors there is support for building tasks and debugging/launch support. This gives better reliability on the editor and reduces terminal usage. This is also just so much more comfortable. I think that first LLDB and Python debuggers should be introduced alongside with shell build tasks

If applicable, add mockups / screenshots to help present your vision of the feature

See: VSCode Build/Debug, JetBrains IDE's debug support

WeetHet avatar Dec 24 '22 20:12 WeetHet

Going to group this together with the code runner issue:

  • zed-industries/zed#5141

JosephTLyons avatar Jan 02 '23 16:01 JosephTLyons

I looked into vscode's task.json file format and I think we should build support for it. Its general purpose, used frequently today, and handles a lot of corner cases pretty well.

https://code.visualstudio.com/docs/editor/tasks

Kethku avatar Jan 28 '23 20:01 Kethku

Speaking of that, shouldn't you also implement debug support? It will help a lot

WeetHet avatar Feb 27 '23 07:02 WeetHet

I second this feature request.

An ability to run builds either manually or automatically based on some editor events, execute tests (with feedback on test failures) and run arbitrary shell scripts (or code snippets as mentioned in related "Code runner" issue), would be immensly helpful.

luolong avatar Mar 12 '23 06:03 luolong

I just don't seem to understand why this, essential thing is not even considered by masses (well, we still don't have replace feature, so maybe that says something)

WeetHet avatar Mar 14 '23 19:03 WeetHet

I think build, run, and debug are all core features.

natsuboy avatar Mar 18 '23 09:03 natsuboy

Debugging support for especially Go 👍🏼

sonereker avatar Mar 20 '23 09:03 sonereker

Maybe we should try to popularise this issue among other people so we would have more support?

WeetHet avatar Mar 20 '23 09:03 WeetHet

I'll mention my own issue for this, as it's the oldest one and it already has a bunch of 👍🏻 https://github.com/zed-industries/zed/issues/5307 it was covering mainly debugging through the support of dap servers, so no mention to building, but everyone who's interested on debugging should probably consolidate its reactions to that one

aexvir avatar Mar 20 '23 14:03 aexvir

@JosephTLyons this one is very important feature which is required by default. Please Include this also as part of top ranking issues. So that i get attention from other developers also

sheikalthaf avatar Apr 23 '23 09:04 sheikalthaf

@JosephTLyons this one is very important feature which is required by default. Please Include this also as part of top ranking issues. So that i get attention from other developers also

Top ranking issues are based on number of thumbs up. Currently it’s the top 20 per core-label. This issue will automatically get there when the interest is high enough.

hovsater avatar Apr 23 '23 11:04 hovsater

@JosephTLyons this one is very important feature which is required by default. Please Include this also as part of top ranking issues. So that i get attention from other developers also

Top ranking issues are based on number of thumbs up. Currently it’s the top 20 per core-label. This issue will automatically get there when the interest is high enough.

I just don't understand how this is considered just an "enhancement" and not a core feature?

WeetHet avatar Apr 23 '23 12:04 WeetHet

The label "enhancement" is used both for enhancements/features, so don't read too much into it. 🙂 The best way for the community to signal the importance of a given feature right now is by add your 👍 to the issue.

hovsater avatar Apr 23 '23 16:04 hovsater

The label "enhancement" is used both for enhancements/features, so don't read too much into it. 🙂 The best way for the community to signal the importance of a given feature right now is by add your 👍 to the issue.

You can look at the problem this way, but that means that PHP support is more valuable than custom LSP support, which is obviously wrong, because latter is the superset of the former

WeetHet avatar Apr 23 '23 18:04 WeetHet

Some of us just want a fast & sleek code editor with some navigation helpers, not a fully integrated Developer :registered: Experience :tm:

Debugger integration might be a key feature for you but for like half of my current projects it's either not useful to begin with or not feasible to set up in any IDE.

jansol avatar Apr 23 '23 21:04 jansol

Labels are 100% an organizing mechanic and not a statement of importance or sequencing. Don't read into them too much.

Build & Debug hasn't been built because the team doesn't really use them – When the right combination of people want it, and it makes sense for us to build sequencing-wise compared to other things, it will get built.

@JosephTLyons we might want to consider merging this with zed-industries/zed#5307 or group them?

iamnbutler avatar Apr 24 '23 01:04 iamnbutler

I'm looking forward to having debug, launch, and task features. Having both VS Code and PyCharm open with multiple projects consumes too much resources and it really slow. 👍

gcdsss avatar Jul 16 '23 07:07 gcdsss

Where can we track progress for this?

smitbarmase avatar Aug 18 '23 04:08 smitbarmase

This would be quite an important feature for everyone working on larger codebases with good specs coverage. On the current Rails project we have around ~7500 specs, and we use debugger with RubyMine on daily basis, either to actually find the bug or for better understanding of the domain process. It is one of the most selling points of RubyMine for Ruby/Rails development and probably the main reason I am paying the licence every year, it speeds up the development.

This was also a core functionality of the VisualStudio while I did .Net development and it still is. For me the main difference between lightweight code editors and the IDE I use for everyday work is high quality debugger.

It would be awesome if a great tool like Zed would have couple of these grade 1 IDE features integrated as part of the core functionality.

MilanVilov avatar Sep 15 '23 07:09 MilanVilov

I'm looking forward to having debug, launch, and task features. Having both VS Code and PyCharm open with multiple projects consumes too much resources and it really slow. 👍

I am found myself using Zed + RubyMine couple of times, as I really wanted to migrate to Zed, but lack of debugger is just too big of an issues, so I went back to RubyMine until this is implemented.

MilanVilov avatar Sep 15 '23 07:09 MilanVilov

Only build task runner is stopping me from switching to Zed.

smitbarmase avatar Nov 02 '23 03:11 smitbarmase

Only build task runner is stopping me from switching to Zed.

same, but I'd also love a debugger

majd-asab avatar Nov 11 '23 21:11 majd-asab

This is the reason why I won't switch from VSCode :-(

emil14 avatar Jan 29 '24 16:01 emil14

Since there's a huge influx of new people: issue popularity is being tracked programmatically based on the :+1: reactions to the OP of each issue. (this would probably deserve a pinned notice at the top of the issue tracker)

"me too" comments do not contribute to the popularity count, they only send out unnecessary notifications to a lot of people.

jansol avatar Jan 29 '24 16:01 jansol

@JosephTLyons, what do you think about creating a tracking issue for this feature and closing this issue for comments?

WeetHet avatar Feb 07 '24 22:02 WeetHet

This is not the focus of this project, I believe. Their previous project doesn't have a debug feature on it. Then, we need other projects on top of this(like: zedVsCode) to create a more feature-rich set for development. My guess... I hope to be wrong.

karmops avatar Feb 20 '24 17:02 karmops

I think this is very important for zed . all developer need debug,I cant understand reason zed no support. I must open vscode when I debug, and write code in zed .

how to custom my code snippets ?

xushuhui avatar Feb 29 '24 02:02 xushuhui

Without the ability to debug and run things, Zed is pretty much on par with Sublime; a nice text editor, but not that useful for developers.

MikeChristensen avatar Feb 29 '24 03:02 MikeChristensen

Without the ability to debug and run things, Zed is pretty much on par with Sublime; a nice text editor, but not that useful for developers.

Sublime has https://github.com/daveleroy/SublimeDebugger

timfjord avatar Feb 29 '24 07:02 timfjord

I think this is unimportant to support many language little developer use,it will more popular product if zed focus on solve developer problem, because most developer only use main language like java、go、python etc. debug and snippet is first problem.

xushuhui avatar Feb 29 '24 08:02 xushuhui