10 January 2021, 20:00 | #181 |
Registered User
Join Date: Apr 2020
Location: Newbury
Posts: 7
|
Thanks for a great development extension environment.
I have recently updated from release 20 to release 21 and have 2 problems: NB: I develop under WSL2 on windoze Attempting to run a previously working Amiga binary produces a connection request error unless I set the delayEmulatorStart to some high value. it then runs for the delay time then produces the failure to connect error(?) Debug runs on the same binary start correctly then randomly hits a segmentation fault. |
10 January 2021, 20:21 | #182 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
Hi, thanks...
Didn't though someone will use WSL2 on windows to run ! ... Someone else uses winuae with wine... I will try it, but you may consider using winuae it works really better on windows that this old version of fs-uae I used. The seg fault, is some kind of side effect from the exception mask, you can reduce it in the launch parameters and set 60. It may be catching some normal interruptions. I had a discussion on this thread : https://github.com/prb28/vscode-amig...bly/issues/135, and will change it in the next release. |
10 January 2021, 20:34 | #183 |
Oldtimer
Join Date: Nov 2010
Location: VXO / Sweden
Posts: 153
|
In WSL2 you get a separate ip stack with a private IP so if you run vscode in WSL2 and WinUAE/fs-uae outside of WSL2 (or the reverse) you cannot use localhost to connect to the debug port.
|
10 January 2021, 22:16 | #184 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
What is the benefit to use wsl2 ?
Is it to have a better build environment (gcc, bash, etc.) ? |
10 January 2021, 23:13 | #185 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
I've just published the 0.21.1.
It may fix the wrong exceptions detection. |
10 January 2021, 23:50 | #186 | |
Oldtimer
Join Date: Nov 2010
Location: VXO / Sweden
Posts: 153
|
Quote:
If you convert the WSL2 "container" to WSL1 which shares the ip stack it will work, or port forward the "debug" port from WSL2 to windows. |
|
11 January 2021, 16:55 | #187 |
Registered User
Join Date: Apr 2020
Location: Newbury
Posts: 7
|
Thanks for the prompt responses.
Release 0.21.1 has fixed the segmentation error when debugging. Still left with the failure to connect error when attempting to simply run from vscode. Seems connected to the delayEmulatorStart argument - if I set it to 30000 the emulation runs perfectly for 30 seconds before failing with the connection refused error. |
11 January 2021, 17:10 | #188 | |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
Quote:
Is vscode connected to a directory in the wsl2 with the remote plugin? fs-uae runs inside the vm or outside? (Ref post grom Geijer) If it runs in wsl2: what do you use to export your display to windows (which xserver implementation)? |
|
11 January 2021, 18:29 | #189 |
Registered User
Join Date: Apr 2020
Location: Newbury
Posts: 7
|
1. connected to a directory within wsl2 using the remote plugin.
2. fs-uae is started within the vm (workspace/bin/fs-uae) and is accessible when debugging. 3. xserver is vcxsrv, display identity is exported from within the bashrc script when the session is started. |
11 January 2021, 23:04 | #190 | |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
Quote:
Do you have something blocking the port ? (If you use a centos vm you must open ports) |
|
12 January 2021, 12:03 | #191 |
Registered User
Join Date: Apr 2020
Location: Newbury
Posts: 7
|
Am using Ubuntu 20.04 lts
I don't think the issue is the port because, as I said in a previous post, the emulation runs perfectly for the emulatorStartDelay period. ie it connects to the instance of fs-uae, loads the program and runs it until that start delay period expires. It is then that I receive the connection refused message. it is almost as if the extension is attempting to run the program a second time. It worked at release 0.20.0 but fails at release 0.21.1. Maybe I am doing something really silly in the launch.json that upsets this latest release! |
12 January 2021, 13:47 | #192 | |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
Quote:
To explain what's happening:
|
|
12 January 2021, 16:02 | #193 |
Registered User
Join Date: Apr 2020
Location: Newbury
Posts: 7
|
I have got it!
The launch.json from the original wks example had a "type" of fs-uae-run. This didn't work so I changed it to fs-uae and it seemed to work, but it is the "type" for debugging (of course!) I see from your most recent amendment to that example you have changed it to uae-run. I have made the same change to my launch.json and it now works once again. Many thanks for your time and effort with this and keep up the good work. |
12 January 2021, 17:37 | #194 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
Great !
Yes I've updated my launch config for the examples. I forgot to commit before the release... sorry, it's confusing. |
18 January 2021, 18:43 | #195 |
Registered User
Join Date: Feb 2020
Location: Germany
Posts: 188
|
Is it possible to deactivate the termination of the "Win UAE" programme after it has finished?
|
18 January 2021, 19:08 | #196 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
|
18 January 2021, 19:11 | #197 |
Registered User
Join Date: Feb 2020
Location: Germany
Posts: 188
|
Thx, but I dont have this in my startup-sequence.
|
18 January 2021, 19:17 | #198 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
So you want to "disconnect" the debugger and keep winuae running.
Sorry, there is no such option, the way to do it would be to set in the launch.json option : ""startEmulator": false" and start winuae in a different command line. |
18 January 2021, 19:21 | #199 |
Registered User
Join Date: Feb 2020
Location: Germany
Posts: 188
|
Yes, that's right. I will run "avail" after quit my programm to check memory or run it again.
|
21 February 2021, 00:53 | #200 | |
Registered User
Join Date: Jul 2017
Location: Oxford
Posts: 107
|
Quote:
Following up on this example I have a question: is it possible to launch the debugger as if the exec were launched via CLI? While debugging I can't open a library that is not in ROM (asyncio), and that is stopping me from being able to properly debug. |
|
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 |
|
|