You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/SpinalHDL/Other language features/report.rst
+40-1Lines changed: 40 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,46 @@ will result in:
42
42
43
43
$display("NOTE miaou %t", $time);
44
44
45
+
Including Scala Source Location
46
+
-------------------------------
47
+
48
+
After 1.13.0, you can optionally include the Scala call-site location (file and line) in the report output, which allows most IDEs to jump to the source when clicking the log line.
49
+
50
+
There are two ways to enable it:
51
+
52
+
.. code-block:: scala
53
+
54
+
// Per-call
55
+
report("HELLO", includeSourceLocation = true)
56
+
57
+
// Globally (for all `report(...)` calls in this elaboration)
0 commit comments