#Help debugging in VS code

4 messages · Page 1 of 1 (latest)

wide quiver
#

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

REPO:
https://github.com/Staninna/16-bit-vm

GitHub

Contribute to Staninna/16-bit-vm development by creating an account on GitHub.

wide quiver
#

OS: Arch Linux x86_64

patent marten
#

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

GitHub

Contribute to Staninna/16-bit-vm development by creating an account on GitHub.

#

@wide quiver