HaxeFoundation / HaxeFoundation/haxe
[jvm] Source file / line mapping info included in non-debug builds
Open
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
Assessment
This issue has not been assessed yet.