GithubHelp home page GithubHelp logo

Comments (7)

eXigentCoder avatar eXigentCoder commented on April 25, 2024 1

Is the issue with Architect running functions in a new process also the reason why I can't seem to get VS Code debugging working with the routes in the Grunge Stack?

Used a debugger; statement in a standard remix app and works like a charm, but in Grunge, no joy 😂

from grunge-stack.

gnllucena avatar gnllucena commented on April 25, 2024 1

any luck trying to make debugger work in grunge stack @eXigentCoder?

from grunge-stack.

kentcdodds avatar kentcdodds commented on April 25, 2024

Ah, that's a bummer. I tested it in the other stacks but not this one. We may need to be a bit more invasive by requiring the mocks in app code 😬

@tbeseda can you confirm that this will run in a different node process from the app? If so, we may need to move that require into app/entry.server.ts during development.

Would be better if there were a way to do a --require sort of thing with arc directly so we don't have to put it in app code.

from grunge-stack.

johncantrell97 avatar johncantrell97 commented on April 25, 2024

Yeah, I'm playing around with running msw in server.ts and it seems to work okay.

from grunge-stack.

johncantrell97 avatar johncantrell97 commented on April 25, 2024

Can confirm it does work if you start the server in app/entry.server.ts but it feels like it really slows every request down quite a bit. Also saw some issues with a 3rd party library that was using axios to post.

from grunge-stack.

tbeseda avatar tbeseda commented on April 25, 2024

Correct, Architect will run each function execution in a new process. It does use the same environment from the root project/package.json, but doesn't inherit from the parent process. This behavior is important to emulating how Lambda will run the function in isolation on AWS.
Obviously msw is really helpful for mocking APIs that a function would interact with, but I'm not sure how it could be wrapped around a function in Sandbox. A plugin might help, but I think no matter what it has to be started each time a request is made since there are no long running processes.

from grunge-stack.

pcbl avatar pcbl commented on April 25, 2024

I am also facing challenges to debug in grunge stack. Anyonbe knows of some advices to make it work?

from grunge-stack.

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.