mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
NEWS.md: Add error_highlight section
This commit is contained in:
parent
07b87f7979
commit
7c01cf4908
1 changed files with 21 additions and 0 deletions
21
NEWS.md
21
NEWS.md
|
@ -218,6 +218,9 @@ Excluding feature bug fixes.
|
|||
|
||||
### TypeProf
|
||||
|
||||
* [Experimental IDE support](https://github.com/ruby/typeprof/blob/master/doc/ide.md) has been implemented.
|
||||
* Many bug fixes and performance improvements since Ruby 3.0.0.
|
||||
|
||||
## Debugger
|
||||
|
||||
* A new debugger [debug.gem](https://github.com/ruby/debug) is bundled.
|
||||
|
@ -228,6 +231,24 @@ Excluding feature bug fixes.
|
|||
* `rdbg` command is also installed into `bin/` directory to start and control
|
||||
debugging execution.
|
||||
|
||||
## error_highlight
|
||||
|
||||
A built-in gem, error_highlight, has been introduced.
|
||||
It includes fine-grained error location in backtrace:
|
||||
|
||||
```
|
||||
$ ruby test.rb
|
||||
test.rb:1:in `<main>': undefined method `time' for 1:Integer (NoMethodError)
|
||||
|
||||
1.time {}
|
||||
^^^^^
|
||||
Did you mean? times
|
||||
```
|
||||
|
||||
This gem is enabled by default.
|
||||
You can disable it by using a command-line option `--disable-error_highlight`.
|
||||
See [the repository](https://github.com/ruby/error_highlight) in detail.
|
||||
|
||||
## Miscellaneous changes
|
||||
|
||||
* lib/objspace/trace.rb is added, which is a tool for tracing the object
|
||||
|
|
Loading…
Add table
Reference in a new issue