Skip to content

Commit dc977ab

Browse files
SporarumKordyjan
authored andcommitted
Add debugger tip to section "Trace a Tree Creation Site" of the contributing guide
[Cherry-picked efa9203]
1 parent 1bb936d commit dc977ab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/_docs/contributing/issues/cause.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ the tree was generated by looking for its unique ID, and then generating a stack
3838
3. Run the compiler with `-Ydebug-tree-with-id <tree-id>` flag. The compiler will print a stack trace
3939
pointing to the creation site of the tree with the provided ID.
4040

41+
If you are using a debugger, you can add a breakpoint in the `ownId == debugId` section of method `allocateId` of `Positioned.scala` (you will still need the flag), this will allow you to navigate the stack with more ease.
42+
Do not use a conditional breakpoint, the time overhead is very significant for a method called as often as this one.
43+
4144
### Enhanced Tree Printing
4245

4346
As seen above `-Xprint:<phase>` can be enhanced with further configuration flags, found in

0 commit comments

Comments
 (0)