Comments (8)
Regarding executable flag, uae-dap tries to fix this and chmod the binary before executing it. Obviously it's not working in this case. Perhaps it doesn't have permission to do so in Linux. I'll look into this.
from vscode-amiga-assembly.
@prb28 Ok, great, thanks, missed that.
from vscode-amiga-assembly.
@grahambates can you look at this please ?
from vscode-amiga-assembly.
I managed to debug on ubuntu 22.04 even if I had the same issue.
Please try:
- chmod u+x /home/user/.vscode/extensions/prb28.amiga-assembly-1.8.7/dist/bin/fs-uae/fs-uae-linux_x64
- Modify your ~/.bashrc
export LD_LIBRARY_PATH=/home/user/.vscode/extensions/prb28.amiga-assembly-1.8.7/dist/bin/fs-uae
- uncheck the "All Exceptions" in the breakpoints view
- Start debuging with fs-uae
I'll try with a debian 12 vm when it will be ready.
from vscode-amiga-assembly.
The workaround is efficient on debian 12 too.
from vscode-amiga-assembly.
@prb28 I can confirm from a quick test that unchecking "All Exceptions" has fixed the issue and I can debug. Awesome.
from vscode-amiga-assembly.
I tested this again using V1.8.7 pre-release version.
The chmod was not necessary, +x was already set.
I then tested with the LD_LIBRARY_PATH set as well as without it and with libsdl2-ttf-2.0-0 installed instead (in order to not get the "[EMU] No suitable emulator binary" error).
I also tested with and without "All exceptions" set.
In all cases what happens is the following:
The debugger stops on the second instruction movem.l (sp)+,d0-a6
, even if there's no breakpoint set, but it doesn't crash as before or land at some other unrelated instruction as originally. So continuing will either finish or stop at the next actually set breakpoint, debugging seems to work except for that stop at the second instruction.
If I comment out movem.l (sp)+,d0-a6
, it stops at clr d0
, so again, it's the second instruction.
A breakpoint at the first instruction is ignored, it still stops at the second instruction.
A breakpoint at the second instruction, doesn't change anything.
Only with "All execeptions" set it now crashes after the code finishes at: 0x00fc08e6: ori.w #$2000, sr
, where it crashed before as described in the original post.
So disregarding the unprompted stop at the second instruction and a breakpoint not working at the first instruction, with "All exceptions" unset, debugging seems to work.
from vscode-amiga-assembly.
@Jasmin68k In the default launch configuration the "stopOnEntry": true,
option is set. This makes the program stop at the second instruction. There is no way to stop it at the first instruction.
If you set this option to false, it will continue until your first breakpoint.
from vscode-amiga-assembly.
Related Issues (20)
- When debuging it lounching fu-uae to run the program HOT 4
- Error message in disassembly view
- [Feature] Disable VSCode debugger via config HOT 1
- Waiting for debugger, FS-UAE on MacM1 HOT 3
- Label of Releases 41 Download HOT 1
- [EMU] No suitable emulator binary (Mac Silicon) HOT 28
- FS-UAE/Linux: Example workspace: Unable to load UAEquit: Error code 121 HOT 5
- vasm output suppressed during build since 1.8.4 HOT 4
- WinUAE debug: execution is stopped at the instruction after the one with the breakpoint HOT 1
- Cannot read properties of undefined (reading 'on') HOT 24
- Watching vars accessed via base register
- [VASM] Error building ....\src\demo.asm to get constants. HOT 3
- Copper breakpoints not working on FS-UAE
- tasks.json vlink includes multiple file syntax HOT 2
- Almost every line showing as error in VSCode HOT 1
- breakpoints can not be set - File not found in Source map - compiled with vb/vbcc HOT 1
- strange behavior when debugging HOT 13
- amigaassembly: ... terminal always pop up despite disabled task! HOT 2
- No documentation for DCB directive HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-amiga-assembly.