Memory and updates #59
Replies: 18 comments 22 replies
-
Hi, What is not possible: You cannot change variables in the Watches panel. What is your setup? I.e. what is 'live machine'? A real ZXNext connected via serial IF? The memory view should reflect all changes that are done on memory. Changes that are done manually in the memory view directly and changes that are done by your z80 code. Could you explain more what you are doing? Could you also send me the version numbers of all involved SW. All of this should also work on cspect and zesarux. |
Beta Was this translation helpful? Give feedback.
-
Please try the fix here: |
Beta Was this translation helpful? Give feedback.
-
OK, fine that it is working. What about the problem with the VARIABLES (i.e. registers)? I tried to change the register in the VARIABLES panel but couldn't find any problem. |
Beta Was this translation helpful? Give feedback.
-
I think there is some confusion, yes i can add and edit the watches, but i
can't alter the values of the watched variable during a debug session like
we can the register.
thanks for yesterday's update, with the new version it made it easier to
debug
…On Sun, 1 Aug 2021 at 16:03, maziac ***@***.***> wrote:
Oh, I see, you tried to change variables in the memory window.
There is an easier way:
Press the '+' in the WATCH window.
Add the name of one of your labels (e.g. mylabel).
If the size is not recognized correctly you can enter it as well.
E.g. "mylabel,2,1" for a word sized variable.
Please see the DeZog Help chapter 8.11 for more info.
For the registers:
If you double click you can change the registers. The complete field gets
selected and you can enter a new number. After you changed the number and
press enter the register is changed.
Up to the point when you press enter, the complete input is handled by
vscode. I.e. I cannot influence the behavior.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#59 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB7EKGDYNMX2PTEPV7GJU4LT2VO2LANCNFSM5BK3A4JA>
.
|
Beta Was this translation helpful? Give feedback.
-
Can't we hold ctrl down, so we can alter them like the registers, and
behind the scenes you alter the memory?
…On Mon, 2 Aug 2021, 07:58 maziac, ***@***.***> wrote:
Yes, that's right. You cannot alter values in the Watches panel.
Unfortunately vscode does not offer an interface for it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#59 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB7EKGGRUMIR2FTWNELKUIDT2Y62RANCNFSM5BK3A4JA>
.
|
Beta Was this translation helpful? Give feedback.
-
That's great, thank you, I will get on it in the morning
Thanks
…On Mon, 2 Aug 2021, 10:58 maziac, ***@***.***> wrote:
Could you please install "dezog-2.2.5-1.vsix" from here:
https://github.com/maziac/DeZog/releases/edit/v2.2.5-test
I added a new command "-memset". Please use the help ("-h") to get some
examples for the syntax.
You can write bytes or words in little endian or big endian and even fill
complete memory areas.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#59 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB7EKGEW7VFBRBCPAA65JP3T2ZT4LANCNFSM5BK3A4JA>
.
|
Beta Was this translation helpful? Give feedback.
-
Hi Maziac
I tried using the move program counter to the cursor today and it appears
not to be working during debug sessions, i think it thinks the cursor is
where the highlighted line for debugging is. However if I manually set the
PC to an address it works!
Cheers
…On Mon, 2 Aug 2021 at 16:30, maziac ***@***.***> wrote:
I don't think I have any direct access to the keyboard.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#59 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB7EKGDA3E6DOARKSA2C4TLT222ZJANCNFSM5BK3A4JA>
.
|
Beta Was this translation helpful? Give feedback.
-
Sorry for the delay getting back to you, it appears to be working how you
described
Many thanks
…On Tue, 3 Aug 2021 at 16:19, maziac ***@***.***> wrote:
?
Could you elaborate this a little bit.
"Move Program Counter to Cursor" is working *only* during a debug session.
I.e. if you are not inside a debug session the menu is not available on
right-click.
If you set the cursor to a line with an assembly statement and execute
"Move Program Counter to Cursor" the PC is changed to that address.
This does not work if the cursor is not on a line with an assembly
statement. E.g. if it is on an empty line above.
Do you maybe have some screenshots to illustrate the behavior?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#59 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB7EKGHMXEXCO3QUZD2ESB3T3ACH5ANCNFSM5BK3A4JA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
Beta Was this translation helpful? Give feedback.
-
Hi, could you have a look at a new release here (2.2.5-2): I have renamed the commands, so please use the "-h" help. Furthermore I added a memory view that displays data in units of words. |
Beta Was this translation helpful? Give feedback.
-
Yup will tomorrow
…On Sun, 8 Aug 2021, 11:16 maziac, ***@***.***> wrote:
Hi, could you have a look at a new release here (2.2.5-2):
https://github.com/maziac/DeZog/releases/edit/v2.2.5-test
I have renamed the commands, so please use the "-h" help.
Furthermore I added a memory view that displays data in units of words.
In big and little endian.
Use "-mvw".
Let me know if it works for you.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#59 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB7EKGAI66J3HSEPVZWTBZDT3ZKOBANCNFSM5BK3A4JA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
Beta Was this translation helpful? Give feedback.
-
Ahhh thanks for that detailed response.
…On Mon, 9 Aug 2021 at 16:17, maziac ***@***.***> wrote:
Your other suggestion:
1. The ZXNext environment is very special. I have had a lot of
headache with the design of the Next's serial interface. Main problems
were: it does not support an interrupt, i.e. it needs to be polled, and it
is shared with the joysticks.
That there is no support for interrupt is the main reason why you
can't break a running program for vscode's UI. You always have to press the
key at the ZXNext to do so. There is a whole chapter in Usage.md which
explains the caveats.
So, when there is no possibility to communicate with the Next while
the program is running, it is also not possible to retrieve information
from it.
2. For the other Remote's it is a little bit different because a
running program can be interrupted. However, here is a different problem:
vscode's UI does not support such a behavior. Whenever the program is
running the VARIABLES pane etc. is turned off. This also happens for other
debuggers for other languages. I.e. even if the data would be updated it
would not be visible.
What can you do instead:
Have you looked at the LOGPOINT feature? It allows you to log output
(registers, memory contents) whenever a certain address is executed.
Instead you can also use a vscode log point (see same chapter in Usage.md)
on the fly, while you are debugging.
But drawback with these log points is that they are completely handled by
DeZog. I.e. behind the scenes it creates a breakpoint. When hit it
evaluates the action, then grasps memory and register values from the
Remote, evaluates the expression and prints it.
Afterwards it continues execution.
I.e. it slows down the program execution.
But the good thing is that you can use rather advanced expressions to
print.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#59 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB7EKGB7K44JZ5HL5IP6VN3T37WRBANCNFSM5BK3A4JA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
Beta Was this translation helpful? Give feedback.
-
If you like you can try another update (defog-2.2.5-3.vsix): I thought about the drawback in the WATCH panel that the values cannot be modified and |
Beta Was this translation helpful? Give feedback.
-
Hey, sorry about the delay getting back to you, however i can't get this to
work on the real next,
I can add the variable from the debug console using -addvar
(playerLives),2,1, then i find it in labels (which i think will confuse
some), then i double click it to change the value and I get this error,
when I enter a new value, i get the same error when i select "set value"
from the menu
[image: dezog.png]
Also there appears to be no --addlabel or -removelable command making the
error redundant
Error: Unknown command: '-removeLabel playersLives' and Error: Unknown
command: '-removeLabel (playersLives)'
Error: Unknown command: '-addLabel playersLives' and Error: Unknown
command: '-addLabel (playersLives)'
very confusing, also there is no -removevar command either, the watches are
permanent between sessions however the vars/labels are not which would be a
aonoying having to set them all but every debug sessions
…On Tue, 10 Aug 2021 at 17:51, maziac ***@***.***> wrote:
If you like you can try another update (defog-2.2.5-3.vsix):
https://github.com/maziac/DeZog/releases/edit/v2.2.5-test
I thought about the drawback in the WATCH panel that the values cannot be
modified and
came up with a solution.
Modification is not possible in the WATCH panel but it is in the VARIABLEs
panel.
So I added a new command "-addvar expression". 'expression' has the same
syntax as what you would enter in the WATCH panel.
But the data now appears in the VARIABLE panel and if you double click an
item you can modify the value.
[image: Bildschirmfoto 2021-08-10 um 18 50 26]
<https://user-images.githubusercontent.com/3081973/128900781-3c347c29-8dfa-47ce-bdb2-f291e3e3cd6e.jpg>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#59 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB7EKGF66GLEEGRUQDPCOZDT4FKIZANCNFSM5BK3A4JA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
Beta Was this translation helpful? Give feedback.
-
I don't like label, as its variables we will be altering, I know they are
technically labels but I'm old school. 😁
Thanks for the update I will look tomorrow.
Oh also any chance of adding a dissembly at cursor rather than just program
counter, as sometimes I want to see the code somewhere other than the PC.
…On Thu, 12 Aug 2021, 17:53 maziac, ***@***.***> wrote:
Hi,
meanwhile I also implemented the complement command "-rmvar index" to
remove a label. You have to use the index here, i.e. 0 will remove the
first displayed label and so on.
Get the new dezog-2.2.5-4.vsix from here again:
https://github.com/maziac/DeZog/releases/edit/v2.2.5-test
About the naming. I was also considering "-addlabel/rmlabel" maybe it's
the better name. What do you think?
(BTW I chose addvar because it is added to the VARiables pane, but I'm
also in doubt that this is a good choice.)
About the error: it happens when the element count is 1. This bug is still
in. As a workaround for now you can use:
-addvar playerLives,2,2
I.e. choose 2 for the last parameter instead of 1.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#59 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB7EKGCHT3VTYZ7ZWIOYQGDT4P4BZANCNFSM5BK3A4JA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
Beta Was this translation helpful? Give feedback.
-
Both "-addvar playersLives,2,2" and "-addvar playersLives,1,2" worked a
treat and they were editable, also the "-rmvar index" did its job too.
I was also able to use "-addvar playersLives+2,2,2" which was nice
Nice work cheers
On Thu, 12 Aug 2021 at 21:40, Patricia Curtis ***@***.***>
wrote:
… I don't like label, as its variables we will be altering, I know they are
technically labels but I'm old school. 😁
Thanks for the update I will look tomorrow.
Oh also any chance of adding a dissembly at cursor rather than just
program counter, as sometimes I want to see the code somewhere other than
the PC.
On Thu, 12 Aug 2021, 17:53 maziac, ***@***.***> wrote:
> Hi,
>
> meanwhile I also implemented the complement command "-rmvar index" to
> remove a label. You have to use the index here, i.e. 0 will remove the
> first displayed label and so on.
> Get the new dezog-2.2.5-4.vsix from here again:
> https://github.com/maziac/DeZog/releases/edit/v2.2.5-test
> About the naming. I was also considering "-addlabel/rmlabel" maybe it's
> the better name. What do you think?
> (BTW I chose addvar because it is added to the VARiables pane, but I'm
> also in doubt that this is a good choice.)
>
> About the error: it happens when the element count is 1. This bug is
> still in. As a workaround for now you can use:
> -addvar playerLives,2,2
> I.e. choose 2 for the last parameter instead of 1.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#59 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AB7EKGCHT3VTYZ7ZWIOYQGDT4P4BZANCNFSM5BK3A4JA>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
> .
>
|
Beta Was this translation helpful? Give feedback.
-
Nice to hear it works. About the name: For the disassembly:
Instead of 400h you can also use a label. A disassembly at cursor position would also be possible. |
Beta Was this translation helpful? Give feedback.
-
No hurry, take your time. If you like here is a new version (2.2.5-5): The commands are now "-addexpr" and "-delexpr". |
Beta Was this translation helpful? Give feedback.
-
In the morning
…On Tue, 17 Aug 2021, 18:26 maziac, ***@***.***> wrote:
No hurry, take your time.
If you like here is a new version (2.2.5-5):
https://github.com/maziac/DeZog/releases/edit/v2.2.5-test
The commands are now "-addexpr" and "-delexpr".
In the VARIABLES section I called it "Epressions".
Furthermore there is a right-click command to disassemble at cursor
position.
Also the restart (green circle arrow) is now really a restart only. I.e.
all the memory views etc. that you opened in the session are not closed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#59 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB7EKGBTG52EHYDORMDJKMTT5KLWDANCNFSM5BK3A4JA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
Beta Was this translation helpful? Give feedback.
-
Hi again
A few things I have noticed would be nice, if possible.
1 When I try and change the variables or program counter manually it has no affect on the live machine, so it would be nice if that was possible.
2 When debugging with a memory view, again on the live machine it does not update the view as we step through our code, is that possible?
Do these available on cSpect?
Beta Was this translation helpful? Give feedback.
All reactions