Git Product home page Git Product logo

Comments (24)

djyt avatar djyt commented on August 16, 2024 2

@grahambates Thanks Graham.

Also just wanted to say a massive respect for the work you've done on this project. It's been a real joy to code with - given I've spent many hours working within the framework, I feel I owe you a pint or a coffee!

At some point I'll put together a list of small tweaks and ideas. But as they say, ideas are cheap!

from vscode-amiga-assembly.

cobour avatar cobour commented on August 16, 2024 2

@prb28 I will try this evening.

from vscode-amiga-assembly.

grahambates avatar grahambates commented on August 16, 2024 1

Looking at it now 👍

from vscode-amiga-assembly.

grahambates avatar grahambates commented on August 16, 2024 1

I did, but I'll do some more thorough testing today.

from vscode-amiga-assembly.

howprice avatar howprice commented on August 16, 2024 1

Thanks! Unchecking "All Exceptions" from the Breakpoints section of the Run and Debug pane has allowed the program to be debugged. I think I have had this issue in the past, and unchecked that same option; perhaps the vscode update reset it to checked?

With regards to the issue you mentioned in the previous post, this is an ongoing issue I have with constants. It also occurs when I open the Run and Debug > Variables > Registers > Constants node. Output:

[VASM] Error building c:\GitHub\howprice\Amiga3D\src\demo.asm to get constants. 

fatal error 13: could not open <demo.asm> for input
aborting...
program exited (with status: 1), but EXIT_RUNTIME is not set, so halting execution but not exiting the runtime or preventing further async execution (build with EXIT_RUNTIME=1, if you want a true shutdown)

EDIT: Please let me know if you need a repro and/or any local files for this - I seems to get it in every project.

from vscode-amiga-assembly.

djyt avatar djyt commented on August 16, 2024 1

@djyt @howprice can you try this workaround? #284 (comment)

@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.

prb28 avatar prb28 commented on August 16, 2024 1

@AndyJBuchanan for a raspberry pi you'll have to rebuild fs-uae. I don't think that the standard build on Ubuntu intel will work.

from vscode-amiga-assembly.

prb28 avatar prb28 commented on August 16, 2024 1

You'll need to build this : https://github.com/grahambates/fs-uae with the prb28 branch.

from vscode-amiga-assembly.

prb28 avatar prb28 commented on August 16, 2024

@grahambates There are some breaking changes in the last version of vscode.

from vscode-amiga-assembly.

grahambates avatar grahambates commented on August 16, 2024

Bit of a strange one. This was down to chaining calls to process.on():

    process
      .on("unhandledRejection", (reason, p) => {
        logger.error(reason + " Unhandled Rejection at Promise " + p);
      })
      .on("uncaughtException", (err) => {
        logger.error("Uncaught Exception thrown: " + this.errorString(err));
        process.exit(1);
      });

From what I can tell this should be valid across all versions of node, and it looks like it's only a problem when the code has been packed with webpack. Either way, changing it to separate calls fixes the issue.

from vscode-amiga-assembly.

prb28 avatar prb28 commented on August 16, 2024

I've tried that fix locally yesterday.
After it, I had some trouble stepping during debug. Did you try step debugging?

from vscode-amiga-assembly.

cobour avatar cobour commented on August 16, 2024

Same error on macOS after update to VSCode 1.86.0 (1.85.2 worked fine).
Please note that I am still stuck using Amiga Assembly v1.8.2 because of issue 283 so I hope there is a chance to fix them both, so I can update to VSCode 1.86.0 soon.
Thanks in advance!

from vscode-amiga-assembly.

prb28 avatar prb28 commented on August 16, 2024

@grahambates thanks, it looks good !
@djyt @cobour I've just published a pre-release, can you try it please ?
I think maybe there are some problems with the copper breakpoints, but I need some more testing.
(My tests are broken, must fix it too before a release)

from vscode-amiga-assembly.

grahambates avatar grahambates commented on August 16, 2024

I think maybe there are some problems with the copper breakpoints

Oh yeah good point, that wouldn't really surprise me as I haven't really tested that. I'll have a look at it too.

from vscode-amiga-assembly.

cobour avatar cobour commented on August 16, 2024

Here are my test results:

macOS 14.2.1 (Intel)

VSCode 1.86.0, Amiga Assembly v1.8.7 (pre-release) => no error message, but fs-uae does not start at all (no window does come up, program does not run)
VSCode 1.86.0, Amiga Assembly v1.8.6 => error message "Cannot read properties of undefined (reading 'on')", fs-uae does not start (emulator does not come up, program does not run)

VSCode 1.85.2, Amiga Assembly v1.8.7 (pre-release) => Extension version can not be installed
VSCode 1.85.2, Amiga Assembly v1.8.6 => error message "[EMU] No suitable emulator binary", fs-uae does not start (emulator does not come up, program does not run)
VSCode 1.85.2, Amiga Assembly v1.8.2 => no error message, fs-uae starts, program starts, debugging works

from vscode-amiga-assembly.

djyt avatar djyt commented on August 16, 2024

@prb28 Hello - sorry for the delay. Just gave the pre-release a quick test.

Run without debugging -> I can compile and launch in UAE.
Start debugging -> causes some kind of crash. I've attached a screenshot.

Also, am I misrembering or has the bundled version of UAE changed with the pre-release version? It's currently 4.10.1

image

image

from vscode-amiga-assembly.

howprice avatar howprice commented on August 16, 2024

Hi. Thanks for fixing the build issue. I've updated to v1.8.7 (pre-release) and I'm having the same issue when debugging.

image

from vscode-amiga-assembly.

prb28 avatar prb28 commented on August 16, 2024

@howprice I do not have it with the example, workspace.
Can you please, try to remove the "all exceptions" option ?
You have an error opening "demo.asm" file, is that normal ?

look's like #284

from vscode-amiga-assembly.

prb28 avatar prb28 commented on August 16, 2024

@djyt @howprice can you try this workaround?
#284 (comment)

from vscode-amiga-assembly.

prb28 avatar prb28 commented on August 16, 2024

@howprice, thanks for the test.
Yes you can open a new issue, if you have a minimal project to reproduce the issue it helps a lot !

from vscode-amiga-assembly.

AndyJBuchanan avatar AndyJBuchanan commented on August 16, 2024

Hello I am trying to set up on a RPi 5 (Latest 64 Bit Pi OS). I'm having an issue here too. I tried installing the 1.1.4 uae-dap and switching to the pre-release Extension.
VSCode 1.87.1, Amiga Assembly v1.8.7 (pre) =>
error message "[EMU] No suitable emulator binary", fs-uae does not start (it is installed and in the PATH [/usr/local/bin] )

from vscode-amiga-assembly.

AndyJBuchanan avatar AndyJBuchanan commented on August 16, 2024

Should I build any specific fork? The default fs-uae binary from apt seems to run ok from the command line.

from vscode-amiga-assembly.

AndyJBuchanan avatar AndyJBuchanan commented on August 16, 2024

The version I've built from the github source (4.0.2-dev) doesn't identify the 'remote_debug" patch in the version string so it's failing the uae-dap launch checks. Do I need an extra patch?

from vscode-amiga-assembly.

AndyJBuchanan avatar AndyJBuchanan commented on August 16, 2024

Thank you! Needed a bit of fiddling, but I have now so far as I can tell a working remote debug fs-uae and basic debugging functionality in the Extension seems to be working. Now to see if I can build some of my old devpac sources...

from vscode-amiga-assembly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.