Hello I am currently making a VM in rust and wanted to debug step by step how everything works at the moment
The program works just as it should but when execute it as normal but when I try to debug it crashes and I do not know how to fix it
4 messages · Page 1 of 1 (latest)
Hello I am currently making a VM in rust and wanted to debug step by step how everything works at the moment
The program works just as it should but when execute it as normal but when I try to debug it crashes and I do not know how to fix it
OS: Arch Linux x86_64
Just tried to debug on my setup and it works just fine.
My setup: archlinux, rustup and rust-analyzer as packages, vscodium + extensions rust-analyzer and CodeLLDB.
Opened folder in vscodium, press F5, confirm automatic debug config generation (I believe, both those extensions allows to do so), press F5 again.
Can inspect stack frames and see that crash at https://github.com/Staninna/16-bit-vm/blob/faed1df40f130ab89f2d4bbaf2561f0d8685933b/src/cpu.rs#L51 since memory.length is 0
@wide quiver