wasmtime win64 lldb jit debugging test
======================================

Software Versions
================

Win64 latest
wasmtime trunk 
python 3.10.11
lldb from llvm 20.1.0
cargo/rustc latest

NOTE: lldb must be in PATH or path fully specified when invoked.


BUILD: minimal test wasm
cargo build --target wasm32-unknown-unknown


TEST_1 :Run directly 
.\wasmtime.exe -D debug-info --invoke app_init .\breakable.wasm

EXPECTED: Display return value (42). 


TEST_2: Run & invoke function that doesn't exist or not exported.
.\wasmtime.exe -D debug-info --invoke app_init_missing .\breakable.wasm

EXPECTED: Caused by: no func export named `app_init_missing` found


TEST_3:  Run under lldb debugger under wasmtime

lldb -- .\wasmtime.exe  -D debug-info --invoke app_init .\breakable.wasm

Set breakpoint
(lldb) b app_init

Run to breakpoint
(lldb) r

EXPECTED: Hits breakpoint.


TEST_4A : Run under debugger under wasmtime API app

TEST: Minimal wasm under c-api
> lldb -- .\test_wasmtime_debug_api.exe .\breakable.wasm
WORKS

TEST_4B : <><> infinity entrypoint wasm app under c-api
> lldb -- .\test_wasmtime_debug_api.exe .\app.wasm
WORKS

TEST_4C : <><> infinity app running normally under c-api
> lldb -- infinity #g X:\dev\wasm_sdk\website\simple

NOT_WORKING


=============================================================================================

Set breakpoint
(lldb) b app_init         OR   breakpoint set --name app_init

Run to breakpoint
(lldb) r                  OR   run

EXPECTED: Hits breakpoint.

=============================================================================================
