Issue #14276 has been updated by dsferreira (Daniel Ferreira).




> > Developing production code without an available debugger is not manageable.

> This appears to be somewhat opinionated since I do just fine without a debugger

OK. Lets replace the wording from "not manageable" to "not very manageable"?

> Here you make the assumption that, all the things included
> and managed, automatically make ruby simpler and thus easier.

Having the tools by default upon ruby installation gives a ready environment to work with.
The tools would be optional and only available using `require`.
From that I don't see where is the extra complexity to the new comer.

> Ruby should not be pushed into a particular philosophy "just like that".

It was just a serious of examples. Not my intention to make ruby biased towards a particular philosophy.
I totally agree that ruby should be open to multiple philosophies.

I tried to emphasise some reasons to support my idea of having some core tools.
I presented a list that could be smaller or bigger.
It is up to Matz and the community to decide what best fits.





----------------------------------------
Feature #14276: Ruby core debugger API
https://bugs.ruby-lang.org/issues/14276#change-69166

* Author: dsferreira (Daniel Ferreira)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
I would like to propose the creation of a ruby core minimal API for a Debugger.

Historically we have been relying on gems as providers of debug functionality.
This has caused problems with debugger APIs being broken and the debugger gems being outdated by ruby releases.
This happened in the transitions from 1.8.* to 1.9.* and 1.9.* to 2.**

Currently ruby community relies mostly on *byebug* gem (+ pry) for debugging purposes.

Recently a new bug [14226](https://bugs.ruby-lang.org/issues/14226) was raised due to changes in ruby internals that broke *byebug*.

I consider that the debugger should be a core part of a language like ruby.
Developing production code without an available debugger is not manageable.

For this reason I believe we should have a way of guaranteeing that each ruby release will not break the debugger.

Also having full control of the debugger API is very convenient for future purposes.
This way third party entities can rely on it to develop productivity tools.

I see two ways we can accomplish this:

- Defining core Debug API namespace where we would create the minimal interface for ruby core debug functionality (Not sure if only cruby or a broader API adopted and designed in collaboration with the other ruby implementations).
- Creating debug gem in standard lib with the same purpose. Having the guarantee that the unit tests will run for every ruby release.

The main goal in my mind would be to have a bare minimum TDD development environment available upon ruby installation
with each bare minimum API providing the base functionality to allow the development of full fledged solutions capable of rivaling with the best solutions in the market.
For that goal I would include here for consideration the same approach for other functionalities such as:
* Coverage
* Documentation
* Benchmarks
* Tests
* Performance
* Linter

I believe we have currently a good situation with regards to:
- Documentation (Rdoc)
- Tests (Minitest)

Why not try to replicate those examples for the remaining areas?
Are documentation and tests so much different from the rest?

If we succeeded to do that we could present ruby to the new comer with a simpler development environment easing the entry level.
We could put simple documentation in ruby-lang.org to show how to achieve a professional development workflow with ruby with no fuss.

A full TDD environment available upon installation it is a great marketing headline in my perspective.

Just to finalise.
The goal here is not to have ruby core replacing the existing gems.
The goal is to give a clear path for these gems while allowing others to develop even further in top of a sound base
without worries regarding future support on the APIs being used.





-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>