Login Page - Create Account

Support Board


Date/Time: Fri, 22 Nov 2024 17:32:43 +0000



Post From: Linux

[2024-05-11 17:43:09]
emmanuel - Posts: 57
Update regarding debugging ASCIL on Linux...

It works :)

This means the entire development cycle is possible without touching Windows:

- Compile studies on Linux using Clang cross-compiling. Actually, I use Zig which then compiles with Clang targeting Windows.
- For debugging with GDB, compile the study with debug symbols in the DWARF 2 format: zig c++ -x c++ -shared -static -std=c++17 -target x86_64-windows -ffp-model=precise -v -g -gdwarf-2 -O0 $sourceFiles -o $dllFile
- As I've mentioned before, with a small shim installed to simulate cl.exe, this can all be done transparently behind the scenes so that you can just do Analysis -> Build -> Debug Visual C++. You can also build with a Makefile, which is what I've been doing lately.

To debug a study, execute SierraChart_64.exe using winedbg: winedbg --gdb --no-start path/to/SierraChart_64.exe

That will then display the remote connection, such as localhost:1234

From another terminal, use gdb to connect to winedbg.

Here's a video of it in action, but I should warn you. After numerous failed screen recording attempts, I gave up and grabbed my phone. And in the middle of the recording the dog walked in and... left me a gift.

Nevertheless, it's possible to debug and step through ASCIL code on Linux.

https://www.youtube.com/watch?v=0qMqAdpt56U
Date Time Of Last Edit: 2024-05-11 17:44:03