vscode-kcide icon indicating copy to clipboard operation
vscode-kcide copied to clipboard

breakpoint is deactivated in the asm file subfolder

Open xerxex351 opened this issue 11 months ago • 6 comments

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

xerxex351 avatar Mar 03 '24 10:03 xerxex351

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 avatar Mar 04 '24 10:03 floooh

...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?

floooh avatar Mar 04 '24 12:03 floooh

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.

xerxex351 avatar Mar 07 '24 19:03 xerxex351

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 https://github.com/floooh/vscode-kcide/issues/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 avatar Mar 08 '24 11:03 floooh

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...

floooh avatar Mar 08 '24 11:03 floooh

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

xerxex351 avatar Mar 09 '24 13:03 xerxex351