A debugging transformer, lets you get better debugging in roblox-ts
automatically adds $file symbol to your logging methods.
log.Info("Hello world")log.Info("src/sever/example.ts Hello world")get the line you are on.
const firstLine = $line
print(firstLine, $line)local firstLine = 1
print(1, 3)get the column you are on.
const column = $column
print(column, $column)local column = 16
print(16, 15)get the file you are on.
const thisFile = $file
print(thisFile)local thisFile = "src/sever/example.ts"
print(thisFile)lets you add some things to the transform result.
add the line info: "%main:%l" -> src/server/example.ts:1
add the column info: "%main:%c" -> src/server/example.ts:1
add the file info (you should always include this): %main -> src/server/example.ts
enables or disables this feature.
default: true
the name of the package for your logging class.
default: @rbxts/log
the methods used to log messages within your logging class.
default: ["Verbose", "Debug", "Info", "Warn", "Error", "Fatal"]
Released under the MIT License.