HaxeFoundation / HaxeFoundation/haxe

[jvm] Source file / line mapping info included in non-debug builds

Open
#10,212 4 comments 0 reactions 1 assignee Claimed by @Simn View on GitHub
platform-jvm
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

```haxe
function main () {
trace("Hello stack trace");
throw 666;
}
```

`haxe --jvm out.jar -main Test -cp "$PWD"`

```
Test.hx:2: Hello stack trace
Exception in thread "main" 666
at _Test.Test_Fields_.main(/home/bruno/trash/tmp-Ywu/Test.hx:3)
at _Test.Test_Fields_.main(/home/bruno/trash/tmp-Ywu/Test.hx:1)
```

I'm thinking the Haxe source filename and line mapping info should only be included in the jar when compiled with -debug?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.