
Hi, I want a nodejs cloud function to run a command (flutter build web) on a docker container with flutter installed on it. I cant make it work on appwrite for now. This feature very much depends on the underlying stack so making it work on another runtime outside appwrite will not help me much. Is there a way to attach vscode debugger to the nodejs runtime used by appwrite so I can debug step by step ( like on the firebase emulator) ? I am supposing that the nodejs cloud function code is run inside the appwrite-worker-functions container, but I might be wrong.

Why do you need to run flutter build web? What exactly is your use case?

I need to build browser extensions on the fly based on flutter apps, so I need to transpile it to javascript with flutter build web

This can't be done as part of your CI jobs instead?

I guess it could be handled by a CI tool but that would be a kind of overkill solution since I really only need to run this single command. But yes, let s say I am building a mini-CI tool with appwrite except the code is customers code, not mine.

My question was more about debugging in general , could be php, nodejs , java etc... There comes a time where you need to stop the execution and use a debugger.

Debugger is entirely a different topic. You won't be able to attach a debugger to an Appwrite function

For this, I would suggest 👍 this issue and commenting with your use case: https://github.com/appwrite/appwrite/issues/1037
Although in the future, you might be able to install flutter as part of the function runtime build process

I had a quick look inside appwrite code. It seems you use utopia php for docker container orchestration of the runtimes. It would certainly require some work but I don t see why technically speaking it would'nt be possible to attach a debugger inside a container.

What I understand is that you suggest that I rebuild the nodejs image adding flutter so I could launch flutter build web straight from the cloud function js code.

You could try that if you want. We don't support any of that, though

Okay, I will try that. Thank you for your time Steven.
Recommended threads
- Images not showing up --
so i made this movie app - i hosted it successfully using appwrite but the images arent showing up --- https://movie-app-jsm.appwrite.network/ this is the movie...
- What’s the current approach for always o...
Read that it’s not a thing out of the box, but what’s the possible setup here?
- Error 431 header fields too large
Some times to times when i load or switch the page, it shows an error 431. And on what i saw it'w because of the cookies, when i remove the legacy tokens it wo...
