Commit Graph

63 Commits

Author SHA1 Message Date
León Orell Valerian Liehr e79615d2d6
fixups (#2082) 2024-10-03 10:54:50 +08:00
León Orell Valerian Liehr 4be2f54a02
Explain the internal `#[rustc_*]` TEST attributes used for debugging and inside tests (#2046) 2024-08-24 01:58:50 +08:00
许杰友 Jieyou Xu (Joe) e7998be731 docs: mention RUSTC_ICE=0 to suppress ICE file 2024-06-18 19:24:17 +01:00
Yutaro Ohno 4c97ad5479 Rename `-Z verbose` to `-Z verbose-internals`
The `-Z verbose` option has been renamed to `-Z verbose-internals` in
commit  b5d83619 [1] (PR #119129 [2]). This commit updates the remaining
`-Z verbose` to `-Z verbose-internals`.

[1]: b5d8361909
[2]: https://github.com/rust-lang/rust/pull/119129
2024-04-30 10:15:49 +02:00
Nicholas Nethercote e3d8733f7b Some updates for recent diagnostics changes. 2024-02-10 04:48:19 +02:00
Gurinder Singh af8e2fe2f8 Rename occurrences of 'delay_span_bug' to 'span_delayed_bug'
since this method has been renamed in rustc.

Also remove a link to  documentation in error-guaranteed.md because it was unused
2024-02-08 20:16:06 +02:00
Zalathar 1dc1152ccc Remove outdated references to `-Z dump-mir-spanview`
This flag was removed by <https://github.com/rust-lang/rust/pull/119566>.
2024-01-16 10:28:45 +02:00
Eric Huss a071dc8c54
Update some links and information for cargo-bisect-rustc (#1657) 2023-04-02 15:15:55 +09:00
Thom Chiovoloni b1b6d693cd Rename `config.toml.example` to `config.example.toml` 2023-03-13 04:42:00 +02:00
Tshepang Mbambo c80a26fc4d
make use of the symlink, to ease things (#1608) 2023-02-17 14:37:01 -06:00
Tshepang Mbambo fdacc773e0
remove stray text (#1604) 2023-02-16 19:33:05 -08:00
AE1020 77aaf99897
Add sample CodeLLDB launch.json (#1482)
* Add sample CodeLLDB launch.json

There is a section with [instructions for setting up source analyzer in VSCode](https://rustc-dev-guide.rust-lang.org/building/suggested.html#configuring-rust-analyzer-for-rustc), but
nothing for setting up debugging with CodeLLDB.  This adds a sample configuration
that may not be ideal, but appears to work for me.

To source highlight the snippet, uses JavaScript instead of JSON so that comments
do not show up as errors highlighted in red (VSCode allows comments).

* Update src/compiler-debugging.md

Co-authored-by: jyn <github@jyn.dev>

* Update src/compiler-debugging.md

Co-authored-by: jyn <github@jyn.dev>

---------

Co-authored-by: Santiago Pastorino <spastorino@gmail.com>
Co-authored-by: jyn <github@jyn.dev>
2023-02-15 11:31:02 -03:00
Tshepang Mbambo c9e4cb704c
typo (#1600)
Fixes #1599
2023-02-15 11:02:38 -03:00
mejrs 8b42eb5f57 Apply feedback 2022-12-18 00:41:27 +02:00
mejrs a213de4efe Add -Ztrack-diagnostics information 2022-12-18 00:41:27 +02:00
Tshepang Mbambo 24de0faa96 fix/improve compiler-debugging 2022-08-10 23:27:09 +02:00
Joshua Nelson 4c39d333c4 Update src/compiler-debugging.md 2022-08-10 09:23:51 -05:00
yukang af80d31f49 add gdb tips for symbol-mangling-version 2022-08-10 09:23:51 -05:00
Oli Scherer 013c8892dd Move log/tracing instructions to its own file 2021-10-08 15:41:06 -05:00
Camelid f525bc8071 Fix typo 2021-02-07 22:12:28 -05:00
Iñaki Garay bee2fd52ce
Add mdbook-toc, markers, and documentation (#1028)
* Add mdbook-toc to travis, book.toml  and documentation

* Add toc markers

* Whitespace cleanup and some punctuation

* Addressed comments
2021-01-20 14:33:11 -03:00
Ryan Levick ed721052a6 Break up long line 2021-01-05 16:13:58 -05:00
Ryan Levick a62429b367 Remove backticks and comment about possible bug 2021-01-05 16:13:58 -05:00
Ryan Levick df8df90fe9 Update src/compiler-debugging.md
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
2021-01-05 16:13:58 -05:00
Ryan Levick 468faaea87 Make instructions for configuring compiler for debug more explicit 2021-01-05 16:13:58 -05:00
Camelid 92e47a0559 Remove old sentence that should have been removed
It was mistakenly not removed in #997.
2021-01-04 22:43:03 -05:00
Yuki Okushi 49f1ed8d77 Fix "Potential incomplete link" error on compiler-debugging.md 2021-01-04 20:12:37 -05:00
Sebastian Widua a0819a6d98 Fix some typos 2021-01-04 10:02:33 -05:00
Camelid f2e7d46f28
Update logging section and explain `RUSTC_LOG_COLOR` (#997)
* Update logging section and explain `RUSTC_LOG_COLOR`

* Small fixes

Co-authored-by: Léo Lanteri Thauvin <leseulartichaut@gmail.com>

* Mention that prefixes of paths work as log filters

* `=debug` matches `debug!` *and higher*

* Note that `MIRI_LOG_COLOR` only applies to logs from Miri

Co-authored-by: Léo Lanteri Thauvin <leseulartichaut@gmail.com>
2020-12-31 01:08:00 +01:00
Iñaki Garay 320df682bd
rustc invocation standarized (#992)
* rustc invocation standarized

* Addressed comments

* Addressed comments

* Addressed comments

* Updated command output
2020-12-28 23:34:51 +01:00
Olivier FAURE 10869964a7 Update src/compiler-debugging.md
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
2020-11-11 10:39:15 -05:00
Olivier FAURE c15e119fd5 Update link in compiler-debugging.md
Link didn't point to latest version of `env_logger` crate.

Add an explanation to disambiguate the RUSTC_LOG syntax.
2020-11-11 10:39:15 -05:00
Macdonald Umoren ed59c2d47d debug-logging=true instead of debug-assertions=yes 2020-09-16 21:56:05 -04:00
Rich Kadel 91a4afbcc6 broken intra-page link from spanview to graphviz
Just noticed the link was not correct. Fixed here.
2020-09-09 19:01:14 -04:00
Rich Kadel b737f79192 Adds documentation to cover spanview output
Documents the feature introduced in #76074.
2020-09-02 12:39:47 +02:00
mark 9bb3872dc7 fix links and names after compiler mv to compiler/ 2020-08-31 05:12:13 +02:00
Yuki Okushi 26adefdb05
Clean-up minor issues (#802) 2020-07-18 00:00:34 +09:00
Joshua Nelson 178e3052b2 Document rustdoc behavior
- `RUSTDOC_LOG`
- `// aux-build:filename.rs`
- `// build-aux-docs`
2020-06-17 09:24:41 -05:00
LeSeulArtichaut 4295e7b578
Add section for debugging rustc type layouts (#720) 2020-05-27 14:17:39 +02:00
Tshepang Lekhonkhobe 03282ca486 I confirmed this 2020-05-01 09:17:27 -05:00
Santiago Pastorino 1398a6fe9d treat-err-as-bug=n means panic on nth error 2020-04-24 13:48:01 -05:00
Santiago Pastorino 27269235d3
Update some projects locations (#658) 2020-04-02 18:40:15 +02:00
LeSeulArtichaut 83cd94ed2b Rename `librustc` to `librustc_middle` 2020-03-31 15:43:14 -05:00
Mark Mansi f4f5d4c151 skeleton for backend chapters 2020-03-12 14:11:01 -05:00
ksqsf 6d07d62ad3 backtraces work on Mac 2019-11-12 14:44:41 -06:00
Eduard-Mihai Burtescu f675e36941 Update for TyCtxt<'a, 'gcx, 'tcx> -> TyCtxt<'tcx>. 2019-06-15 16:58:30 -05:00
Who? Me?! 53961054c8 Update compiler-debugging.md 2019-06-11 11:55:03 -05:00
Vadim Petrochenkov 3ac9cfc9c9 Update information about debuginfo configuration 2019-06-02 19:36:58 -05:00
Yuki Okushi 2b8280f113 Rename to RUSTC_LOG 2019-05-03 15:04:24 -05:00
Oliver Scherer ad07f7fac5 Explain new powers of the `treat-err-as-bug` flag 2019-04-24 09:04:12 -05:00