21 February 2021, 11:26 | #201 |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,410
|
I've recently become re-aware of this and tried it out. It seems to work well enough, but I can't get the WinUAE debug (or run) to work. Only FS-UAE seems to work, the WinUAE configurations give the error "unknown type: WinUAE".
Does anyone know how I can fix this? Because source level debugging my HW banging asm code is such a nice feature I really would like to have it working, preferably in WinUAE |
21 February 2021, 20:58 | #202 | |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
Quote:
Same for me. |
|
22 February 2021, 16:37 | #203 | ||
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
Quote:
Quote:
I don't really know all the surroundings of the CLI. One I've tried to rework the exe load sequence but didn't succeed to have something better. You should try the winuae version, I think it's more CLI compatible. A merge with fs-uae is possible, but, that's some work... |
||
22 February 2021, 16:43 | #204 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
Try from a clean example project download : https://github.com/prb28/vscode-amig...indows_x64.zip
It should work. |
22 February 2021, 18:42 | #205 | |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,410
|
Quote:
Strange... I only first downloaded and installed the extension/example two days ago and it most definitely didn't work at the time. At any rate, it works now so thanks for the help. I'll be trying this out for sure Edit: it is possible the link via the marketplace doesn't work and the one you gave does? Because I installed it through the VS Code marketplace and your link is directly from Github. Last edited by roondar; 22 February 2021 at 18:48. |
|
22 February 2021, 22:58 | #206 | |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
Quote:
|
|
22 February 2021, 23:05 | #207 | |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,410
|
Quote:
Not quite sure what went wrong then, because that does seem to be the exact same link as you sent me. At any rate, it works now and I'm quite impressed with how easy it all works so far. I love the way the registers show the meaning of their bit values when you hover over them. Saves me looking them up! Granted, I've yet to try many things but that's half the fun |
|
23 February 2021, 00:06 | #208 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
Yes, it's the same link and I did not update it recently.
To start discovering the extension, you have some features in the wiki : https://github.com/prb28/vscode-amiga-assembly/wiki If you want to try some useful (not so clearly explained) options :
|
24 February 2021, 23:02 | #209 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
How exactly does one use the debugger commands? Like where are these entered and set?
How do I view the memory pointed to by an address register? |
24 February 2021, 23:11 | #210 | |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
Quote:
You can add a watch an type the same command. Screen example : https://github.com/prb28/vscode-amig...the-watch-view |
|
24 February 2021, 23:28 | #211 | |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
I have followed this, and it displays from mem location 0 or doesn't show from the memory location I set.
I have tried with both FSUae and Winuae Quote:
|
|
24 February 2021, 23:35 | #212 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
|
24 February 2021, 23:43 | #213 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
Spot on, that has fixed it. Thank you
Would it be possible to have the ability to right click on a register/label and select for it to display the memory location? |
24 February 2021, 23:59 | #214 | |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
Quote:
|
|
25 February 2021, 00:43 | #215 | |
Registered User
Join Date: Jul 2017
Location: Oxford
Posts: 104
|
Amiga Assembly extension for Visual Studio Code
Quote:
Thanks for your reply! I tried with every possible path, absolute, relative, etc... I believe the issue is in the way the emulator is called. In the run config, you can see the emulator will just start off the disk and follow the normal startup-sequence, in debug mode, the exec is just “passed” to the emu. Unfortunately I can’t use a Windows machine atm. I’ll give it a go when possible, just to see if the same issue happens. On a different topic, still related to the fs-uae debugger, is there a way to debug a memory location with a labelled offset from a register? I can’t find a way... Ie: move.w d0,myLabel(a0) ...it won’t find the symbol “myLabel”. It only seems to work with absolute addresses. Either I don’t know how to do it, or is this an actual limitation of fs-uae? Last edited by emiespo; 25 February 2021 at 22:03. |
|
25 February 2021, 00:56 | #216 | |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
Quote:
You can try : m ${mylabel}+${a0},10,2,4 or m #{mylabel}+${a0},10,2,4 (I think I've a bug on this) |
|
26 February 2021, 21:32 | #217 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
Any idea why my registers are no longer showing?
|
26 February 2021, 22:22 | #218 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
No idea. The debugger didn't retrieve fs-uae debug info.
Try : - set a breakpoint at the beginning of the program (3rd line) or set stop at entry in the launch params : "stopOnEntry":true - Run with winua - Clean the workspace and the unwanted .s files - modify the launch command to add "trace":true - you should see the communications between fs-uae and vscode Otherwise : I can have a look if you send me the folder. |
26 February 2021, 22:32 | #219 | |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
Find my (your) workspace attached. I haven't included the bin folder which is unmodified.
Ignore my spaghettiness (unless it is the reason the debugger isn't working at all). No breakpoints are working I haven't done anything since last night apart from start to split my code across multiple files (poorly I may add) Thjanks Quote:
|
|
27 February 2021, 10:45 | #220 | |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
Quote:
Well, I saw it... start to debug trying to understand, and it started working and I can't make it fail again ! What I did before it works : - I've edited the launch file and removed all the configurations, kept only one debug configuration and start debugging (F5). I thought it was a corrupted file but restoring the zip does not make it fail again. Can you try the same procedure ? Does it work with default workspace ? (This is the 'science' part of 'computer science' ) |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
assembly code to test for assign (2.0+) | jotd | Coders. System | 2 | 27 December 2017 23:16 |
very basic C/ASM/Visual Studio hand holding | Sephnroth | Coders. C/C++ | 2 | 08 March 2016 20:15 |
Amiga Audio/Visual | KhneFr | request.Other | 6 | 03 January 2015 10:25 |
Profiling WinUAE with Visual Studio 2013 | mark_k | support.WinUAE | 3 | 14 January 2014 20:26 |
amiga visual editor | thinlega | request.Apps | 1 | 22 January 2003 15:48 |
|
|