edmcman / ghidra-scala-loader

An extension to load Ghidra scripts written in Scala
28 stars 7 forks source link

println does not work in utility classes #2

Open edmcman opened 5 years ago

edmcman commented 5 years ago

GhidraScript defines println, which is inherited by script classes. If an auxiliary class is defined in a scala GhidraScript (and does not inherit from GhidraScript), println won't send its output to the console. This can be worked around by passing println from the script class to the auxiliary class, but a better solution is in order.

edmcman commented 5 years ago

Or just define the auxiliary class as a nested class in the ghidrascript class. Duh.