adv-sw opened issue #11846:
Test Case
Repro: http://advance-software.com/misc/test_breakpoint.zip)
Steps to Reproduce - Windows
Build your wasmtime.exe & put it in repro dist subdirectory.
(there's a 0 length placeholder there right now)Then [command line] :
lldb -- .\wasmtime.exe -D debug-info --invoke app_init .\breakable.wasm
(lldb) b app_init
(lldb) r
& that works (for me)Build the c-api test in host, using visual studio 2022 - a couple of hardwired paths in there to change but its mostly portable. resulting .exe should end up in repro "dist" subdir, overwriting the 0 length placeholder.
Verify it works (from dist) :
.\test_wasmtime_debug_api.exe .\breakable.wasm
Should get result : 42Next, run under lldb :
lldb -- .\test_wasmtime_debug_api.exe .\breakable.wasm
(lldb) b app_init
(lldb) r
breakpoint not hit.that's the bug.
What do you expect to happen?
breakpoint should be hit when running breakable.wasm from both wasmtime & c API test.
What actually happens?
breakpoint hit when running breakable.wasm from wasmtime, not hit from c API test.
Versions and Environment
wasmtime trunk
lldb version 20.1.7
Wasmtime version or commit: TODO
Operating system: windows 11 - latest.
Architecture: x64-84
Extra Info
Source to breakable.wasm is in wasm subdir - its trivial.
Tried c-api buiit static & dynamic. static my preference as less sensitive to where .dll's are on Windows which has caused system to be unreliable in the past. Neither works.
Difference (guess) : wasmtime likely uses wasmtime API, the C API test uses the wasm API.
adv-sw added the bug label to Issue #11846.
adv-sw edited issue #11846:
Test Case
Repro: http://advance-software.com/misc/test_breakpoint.zip)
Steps to Reproduce - Windows
Build your wasmtime.exe & put it in repro dist subdirectory.
(there's a 0 length placeholder there right now)Then [command line] :
lldb -- .\wasmtime.exe -D debug-info --invoke app_init .\breakable.wasm
(lldb) b app_init
(lldb) r
& that works (for me)Build the c-api test in host, using visual studio 2022 - a couple of hardwired paths in there to change but its mostly portable. resulting .exe should end up in repro "dist" subdir, overwriting the 0 length placeholder.
Verify it works (from dist) :
.\test_wasmtime_debug_api.exe .\breakable.wasm
Should get result : 42Next, run under lldb :
lldb -- .\test_wasmtime_debug_api.exe .\breakable.wasm
(lldb) b app_init
(lldb) r
breakpoint not hit.that's the bug.
What do you expect to happen?
breakpoint should be hit when running breakable.wasm from both wasmtime & c API test.
What actually happens?
breakpoint hit when running breakable.wasm from wasmtime, not hit from c API test.
Versions and Environment
lldb version 20.1.7
Wasmtime version or commit: trunk
Operating system: windows 11 - latest.
Architecture: x64-84
Extra Info
Source to breakable.wasm is in wasm subdir - its trivial.
Tried c-api buiit static & dynamic. static my preference as less sensitive to where .dll's are on Windows which has caused system to be unreliable in the past. Neither works.
Difference (guess) : wasmtime likely uses wasmtime API, the C API test uses the wasm API.
alexcrichton added the wasmtime:debugging label to Issue #11846.
adv-sw closed issue #11846:
Test Case
Repro: http://advance-software.com/misc/test_breakpoint.zip)
Steps to Reproduce - Windows
Build your wasmtime.exe & put it in repro dist subdirectory.
(there's a 0 length placeholder there right now)Then [command line] :
lldb -- .\wasmtime.exe -D debug-info --invoke app_init .\breakable.wasm
(lldb) b app_init
(lldb) r
& that works (for me)Build the c-api test in host, using visual studio 2022 - a couple of hardwired paths in there to change but its mostly portable. resulting .exe should end up in repro "dist" subdir, overwriting the 0 length placeholder.
Verify it works (from dist) :
.\test_wasmtime_debug_api.exe .\breakable.wasm
Should get result : 42Next, run under lldb :
lldb -- .\test_wasmtime_debug_api.exe .\breakable.wasm
(lldb) b app_init
(lldb) r
breakpoint not hit.that's the bug.
What do you expect to happen?
breakpoint should be hit when running breakable.wasm from both wasmtime & c API test.
What actually happens?
breakpoint hit when running breakable.wasm from wasmtime, not hit from c API test.
Versions and Environment
lldb version 20.1.7
Wasmtime version or commit: trunk
Operating system: windows 11 - latest.
Architecture: x64-84
Extra Info
Source to breakable.wasm is in wasm subdir - its trivial.
Tried c-api buiit static & dynamic. static my preference as less sensitive to where .dll's are on Windows which has caused system to be unreliable in the past. Neither works.
Difference (guess) : wasmtime likely uses wasmtime API, the C API test uses the wasm API.
adv-sw commented on issue #11846:
Fixed. Cause was missing conf.h
Fixed by manually recreating from conf.h.in with all current options enabled.
Last updated: Dec 06 2025 at 06:05 UTC