Is there any ways to get error logs with cpp/windows as output?

Right now, when errors occur, it just pops up the error and close the game just like that. I want to know its stacktrace and stuffs.

Attaching IDE to the process doesn’t work because it doesn’t “crash” in debug mode, so it won’t jump to wherever the error occurs. How do you guys solve this problem?

I’m trying to compile the game to C++/Windows, and I want to know how should I debug that.

You can run with a -debug option that will show you the stacktrace: openfl test windows -debug

Ah, that works. Thanks a lot!