console.hx icon indicating copy to clipboard operation
console.hx copied to clipboard

[Feature Request] Work with haxe posInfos

Open Jarrio opened this issue 8 months ago • 1 comments

Would be cool if we could pass posInfos to the logger to forward error lines.

class Main {
   static function main() {
      write("Hey");
   }

   static function write(a:String, ?infos:PosInfos) {
      Console.log('success', infos); // Line information is - Main.hx:3
   }
}

Jarrio avatar Mar 28 '25 11:03 Jarrio

Try Console.debug, it'll show line information

https://github.com/haxiomic/console.hx/blob/8ebf3426d97d1e2727cc3763fcd55180146e7bc2/Console.hx#L71

haxiomic avatar Mar 28 '25 14:03 haxiomic