04 October 2020, 00:43 | #161 |
Registered User
Join Date: May 2015
Location: Kirkland, Washington, USA
Posts: 56
|
Yeah, it is understandable that the debugging exe is bigger due to extra debug info, but that wouldn’t affect the actual code in the executable, I just didn’t think the emulator itself would run that much slower.
Sounds good that you are pushing for this to be in a WinUAE fork also - I have no allegiance to neither FS-UAE nor WinUAE, I just use whatever gets the job done :-) and I will happily wait if this is the first step before trying to optimize this. Thanks for the reply |
04 October 2020, 15:42 | #162 | |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
Quote:
The choice of winuae is more to enter in a classic merging path from winuae to fs-uae and getting an IDE agnostic remote protocol useful in the future. If you are interested, I'll certainly make a test release to get some feedback (sometime in the future). I'll tell you if it is faster, next time I run it on winuae ;-). |
|
07 October 2020, 08:52 | #163 |
Registered User
Join Date: May 2015
Location: Kirkland, Washington, USA
Posts: 56
|
I have one small bug report:
I couldn't place breakpoints in my code. Similar symptoms to github issue #115. I verified that my paths in the debug executable were actually absolute (as recommended), however, they contained ".." to go to parent path. For example: c:\code\source\mycode.s looked fine but c:\code\source\..\includes\musicplayer.i didn't. For me this was something that either VAsm or VLink put in. I wonder if this is something you could make your extension deal with? It's technically not wrong for VAsm to leave the paths unflattened, though it is a waste of bytes, so it would be better if your debug info loader cleans the paths I personally worked around it, but thought you would want to know. It also makes me wonder if the plugin deals properly with upper/lower case inconsistencies in file paths, but I didn't test that. |
07 October 2020, 23:45 | #164 | |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
Quote:
Well... Yes and no, there are some workaround in the extension but vscode had some issues on windows with case sensitivity. |
|
08 October 2020, 11:13 | #165 |
Registered User
Join Date: Jun 2020
Location: Brno
Posts: 90
|
Amiga-Assembly is such a great tool. Thank you prb28 for it!
Honestly, I think I wouldn't return to Amiga coding without it. After 20 years long break, for me, it was too intimidating to code in ASMOne back again as I am too much accustomed to other IDEs and editors. To sit down by my computer after work, start VSCode with your addon, write in 68k assembler and easily test it in FS-UAE is such a pleasure! Thank you! P.S.: Sorry for spamming this thread. I just had to write it. |
08 October 2020, 21:08 | #166 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
|
12 October 2020, 00:17 | #167 |
Registered User
Join Date: May 2015
Location: Kirkland, Washington, USA
Posts: 56
|
By the way, I worked with Frank Wille to add a new feature into the next version of vasm, which will make source-level debugging even more useful (at least useful for me) - make it optional per macro if the source-level debug information should point at the instructions of the macro or the parent line+file where the macro was invoked.
This is extremely useful if you use a ton of small macros, and you really care about following the flow of the larger functions using the macros, rather than each instruction inside the macro. On the other hand, for the larger or more important macros you may want to debug into the macros. This is controlled using a new directive, msource on/msource off, which you would wrap around the macros you want to show the parent line+file. Know that stepping in the debugger only steps an assembly instruction, not to a new source line. I like the way it works, but I found it useful to also look at the disassembly window in parallel, so I can watch what is going on. I may start another thread to share some of the macros I use, but i found this useful for a lot of cases, such as * beginfunc/endfunc - i write all my assembly code within these functions macros, adn they can do certain checks at beginning/end of every function. But I never care about debugging into the checks - i care about the actual function, and want to be able to set breakpoints on each function rather than on the beginfunc macro. * push <registerlist>/pop - macros for pushing register to the stack, and a macro for popping - pop doesn't need a list of registers, so it will always match up with the push. And it will fail to compile if pushes and pops don't match up inside functions * assert - creates an infinite loop that flashes the screen. If I stop the debugger I see the source file that triggered the assert, not the assert flashing code. * waitblit Plus I made a simple scripting language using macros, and it is amazing to be able to put breakpoints on specific lines rather than in the underlying macros. |
12 October 2020, 21:26 | #168 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
Really interesting!
For the stepping, having a step over step into for the macros or step until line could be interesting to add. |
13 October 2020, 11:18 | #169 |
Registered User
Join Date: Mar 2010
Location: Napoli, Italia
Posts: 76
|
Is there anything similar for people who don't use Windows and Visual Studio?
|
13 October 2020, 11:32 | #170 | |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
Quote:
Alternatively you can use the bebbo’s debugging tools with eclipse and gcc. |
|
13 October 2020, 20:53 | #171 |
OCS forever!
Join Date: Mar 2019
Location: Birmingham, UK
Posts: 418
|
It’s not visual studio by the way. It’s visual studio code which is a free lightweight editor.
|
11 December 2020, 14:24 | #172 |
Registered User
Join Date: Aug 2006
Location: Finland
Age: 51
Posts: 242
|
Been playing around with this nice extension (using OSX).. Any idea what's causing probs when trying to run the fs-uae with gdbstub I always get a popup "Unable toi load segments" and the debugging as-is does not work.
|
11 December 2020, 20:02 | #173 | |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
Quote:
https://github.com/prb28/vscode-amig...xample-osx.zip |
|
12 December 2020, 11:45 | #174 | |
Registered User
Join Date: Aug 2006
Location: Finland
Age: 51
Posts: 242
|
Quote:
|
|
12 December 2020, 12:12 | #175 |
Registered User
Join Date: Aug 2006
Location: Finland
Age: 51
Posts: 242
|
|
12 December 2020, 18:34 | #176 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
|
12 December 2020, 19:17 | #177 |
Registered User
Join Date: Aug 2006
Location: Finland
Age: 51
Posts: 242
|
|
20 December 2020, 21:38 | #178 |
Registered User
Join Date: Dec 2017
Location: Spain
Posts: 1
|
Lovely extension, prb28, but one question.
Is it possible to have multiple winuae debug configurations, so I can debug into an A500 or A1200? I tried to modify the configuration, but I got nothing. Thanks |
20 December 2020, 22:33 | #179 | |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
Quote:
* the file : bin\default.uae * the file : .vscode\launch.json I think you can remove the option "quickstart=a500,1" from the default.uae file and create two different launch configuration with this parameter using a500 or a1200 value. |
|
21 December 2020, 08:11 | #180 |
Registered User
Join Date: Feb 2020
Location: Germany
Posts: 178
|
I have simple create several configs with WinUAE. With the follow option in the launch.json select them:
Code:
"options": [ "-config=A600.uae", "-s", "debugging_features=gdbserver", "... |
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 |
|
|