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

breakpoint is deactivated in the asm file subfolder #9

Open
xerxex351 opened this issue Mar 3, 2024 · 6 comments
Open

breakpoint is deactivated in the asm file subfolder #9

xerxex351 opened this issue Mar 3, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@xerxex351
Copy link

There is an annoying bug in the debugger that it deactivates the breakpoint in the files that are in the subfolders
image

As you can see in the picture, by running the debugger, the breakpoint is deactivated for the reason "unverified breakpoint".

Maybe it is my fault and something is missing in my configuration file
image

@floooh floooh self-assigned this Mar 4, 2024
@floooh floooh added the bug Something isn't working label Mar 4, 2024
@floooh
Copy link
Owner

floooh commented Mar 4, 2024

It's most like a bug related to path handling, there are some annoying differences between UNIX-like systems and Windows, and also between desktop and web which need special case handling.

What operating system are you on?

@floooh
Copy link
Owner

floooh commented Mar 4, 2024

...it works on macOS at least:

image

...will check on Windows next.

...hmm it also works on Windows.

image

Can you provide more info which would help me to reproduce the problem?

@xerxex351
Copy link
Author

Sorry for late answer, I'm using Windows 11.

I was thinking that the issue might be linked to OneDrive, but even in hard disk, I have the same issue

I found also another problem, the breakpoint doesn't work in the main program when org is 0000h.

@floooh
Copy link
Owner

floooh commented Mar 8, 2024

Ah ok, getting closer.

I can at least reproduce the "breakpoints on address 0 are not working" on the CPC emulator, but not on the KC85/4 emulator (I did test this case, because I thought it might be related to #7, but not on the CPC emulator).

As far as I can see, this is unrelated to "source code is in a subdirectory" though, at least I cannot reproduce this case, unless the breakpoint in code pulled in from a subdirectory is located at address 0.

I'll check why breakpoints at address zero don't work together with the CPC emulator....

@floooh
Copy link
Owner

floooh commented Mar 8, 2024

Hmm, no it's not as simple as that... this works for instance on the CPC emulator:

image

...however, after running the programm the emulator gets into an invalid state, because the memory page at address 0 isn't switched back to the 'shadow ram' state. The emulator needs to be rebooted before starting again...

@xerxex351
Copy link
Author

I tried in my laptop (Windows 11) and got the same issues

  • breakpoint doesn't work when org= 0
  • breakpoint is deactivated in the file that is in a subfolder

image

Attached the small code for test
cpc.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants