Debugging Cloud Functions

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024
  • НаукаНаука

Комментарии • 26

  • @ekkamailax
    @ekkamailax 2 года назад +7

    I choose GCP over AWS because of how helpful these videos are and how intuitive it is to get things up and running. Well done

    • @TheMomander
      @TheMomander 2 года назад

      Thank you. Your comment made my day!

  • @jfbaro2
    @jfbaro2 3 года назад +3

    Thanks for sharing. I love serverless. Please keep improving the performance (cold start) and DX of Cloud Functions.

  • @nat.serrano
    @nat.serrano 2 года назад +3

    Grant looks a terminator coming from 2050, but his content is great!

  • @keerthikaj
    @keerthikaj 3 года назад +7

    Grant content.. thanks for making these videos.
    Deployment to Cloud Functions is easy & straight forward but from an enterprise development perspective, we would need to maintain multiple environments (like dev / qa / prod). Once developer commits their code to repository, how do we build a CI/CD process to reuse the same artifact and deploy in multiple environments? I tried to look up a couple of documentation but most of them only demonstrate a simple hello world deployment process. Would it be possible to make a video to explain the process or share the relevant documentation if it's already available?

    • @jfbaro2
      @jfbaro2 3 года назад +3

      Great point! Having ephemeral deployments (test) is something much easier with FaaS than it is with other technologies. I would like to see this video as well!

  • @wesleybarnes5376
    @wesleybarnes5376 3 года назад

    Am I missing something from this video, I get the error when I do npm start - "severity":"WARNING","message":"Warning, FIREBASE_CONFIG and GCLOUD_PROJECT environment variables are missing. Initializing firebase-admin will fail"

  • @rahulsriram6295
    @rahulsriram6295 2 года назад +1

    What if I was using Firebase Emulators? How do I connect the firebase auth and firestore and storage running on emulators to these locally running functions?

    • @TheMomander
      @TheMomander 2 года назад

      Hi Rahul! These two links have the information you are looking for:
      firebase.google.com/docs/emulator-suite/connect_auth
      firebase.google.com/docs/emulator-suite/connect_firestore

  • @sungjuyea4627
    @sungjuyea4627 3 года назад +1

    I am kind of having nightmares on this subject. I am designing a program doing web scraping, and I want to run it automatically on Cloud Function. However, it just stops at a certain point and doesn't tell me why. Is there any other way that I can do debugging with Cloud Function? The method described in this video just makes the program run on the local environment, but what I want to check out is how my code runs on the GCP server.

    • @TheMomander
      @TheMomander 2 года назад +1

      If I were in your situation I would make sure that my code catches all exceptions and write them to the log (console.log() in Javascript, print() in Python, etc). Then I would examine the log in my project: click the hamburger menu, then scroll down to Cloud Logging. Hope this helps!

    • @sungjuyea4627
      @sungjuyea4627 2 года назад

      @@TheMomander Debugging through prints! I didn't think of that. Thank you for your detailed answer! I really appreciate it.

  • @imrank340
    @imrank340 3 года назад

    Is this same principle apply to C/C++ debugging process with GDB?

    • @TheMomander
      @TheMomander 3 года назад

      Hi Emran! What does "GDB" stand for?

  • @deepaknaidu6552
    @deepaknaidu6552 2 года назад

    i am trying to deploy a node js cloud function, which updates a few values on the firestore, the function works well on the emulator but dosent work when i deploy is and trigger it on postman, why?

    • @TheMomander
      @TheMomander 2 года назад

      It's hard to say without seeing your code. If I were in your situation I would look for a tutorial that uses Cloud Function to access Firestore. I would follow that tutorial and make sure everything worked. Then I would modify that code step-by-step until it became the code you want. I would test every step of the way. Best of luck with your project!

  • @krtarun5422
    @krtarun5422 3 года назад

    Can you please let me know how can I test google cloud functions

    • @TheMomander
      @TheMomander 2 года назад

      Do a web search for "google cloud functions testing overview" and you will get to the right page in the documentation. There are four pages on that topic. Best of luck with your project!

  • @fahadsulaiman5981
    @fahadsulaiman5981 2 года назад

    how to debug appscript application using cloud debugger

  • @BrunoAlcantara-x5d
    @BrunoAlcantara-x5d 7 месяцев назад

    Whenever I try to run the npm start or the npx @google-cloud/functions-framework I always get hit by the MODULE_NOT_FOUND. "Cannot find module 'C:\@google-cloud\functions-framework\build\src\main.js'" has anybode gone through the same thing?

  • @fahadsulaiman6451
    @fahadsulaiman6451 2 года назад

    How Google appscript work on this

    • @TheMomander
      @TheMomander 2 года назад

      Google Apps Script is a separate product and works differently. Please refer to the documentation for that product. Best of luck with your project!