Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't step program? #11

Open
HazeSystem opened this issue Nov 24, 2022 · 4 comments
Open

Can't step program? #11

HazeSystem opened this issue Nov 24, 2022 · 4 comments

Comments

@HazeSystem
Copy link

It seems that no matter what I do, there's no way to pause a program and step through it in the debugger. I've only been able to step through a program that has a bug that causes execution to halt.

@randrew
Copy link
Owner

randrew commented Nov 29, 2022

There's a device you can write to that triggers the debugger. I forgot what it is.

@HazeSystem
Copy link
Author

Ahh okay, it's writing a non-zero value to .System/debug (#0e). Could you add that to the Readme perhaps? :)

@randrew
Copy link
Owner

randrew commented Dec 27, 2022

It's in the Varvara document, sorta. Maybe @neauoire could change the Varvara documentation so that it says "invokes some emulator-specific debug function" or something?

@neauoire
Copy link
Contributor

neauoire commented Dec 27, 2022

Ah! yeah I went and made it clearer :) #010e DEO is indeed the way to do this.

Sending a non-null byte to the 0x0e port will print the content of the stacks or pause the evaluation if the emulator includes a step-debugger, sending a non-null byte to the 0x0f port will terminate the application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants