Menjalankan dan Men-debug Project App Engine Flex Secara Lokal di Dalam Eclipse
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Halaman ini menunjukkan cara menjalankan dan men-debug project fleksibel App Engine di server Jetty yang berjalan di komputer lokal Anda.
Sebelum memulai
Instal Integrasi Eclipse Jetty dari
marketplace Eclipse jika Anda
belum melakukannya.
Membuat konfigurasi run dan debug
Untuk membuat konfigurasi run dan debug baru untuk aplikasi Anda:
Pilih aplikasi flex Anda di Project Explorer.
Pilih Run > Run Configurations....
Pilih Jetty Webapp di panel kiri.
Klik ikon New launch configuration.
Nama konfigurasi run diisi otomatis dengan nama project.
Isi kolom lain sesuai kebutuhan.
Klik Run.
Untuk informasi selengkapnya tentang opsi konfigurasi yang tersedia saat membuat konfigurasi run
dan debug, lihat
dokumentasi Eclipse Jetty.
Meluncurkan project dengan Jetty
Setelah membuat konfigurasi run, Anda dapat meluncurkan project di server
Jetty dengan memilih Run > Run As > Run with Jetty.
Project Anda tersedia di http://localhost:8080/, atau di port yang Anda
tentukan dalam konfigurasi run.
Anda dapat men-debug project dengan memilih Run > Debug As >
Run with Jetty.
Untuk menghentikan server Jetty, klik tombol Terminate (kotak merah) di
toolbar Console untuk output Jetty.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-04-09 UTC."],[[["Cloud Tools for Eclipse is only compatible with App Engine Java 8, which will no longer be supported after January 31, 2024, and users will not be able to deploy or update existing Java 8 applications after the support date."],["This guide provides instructions on how to run and debug an App Engine flexible project locally using a Jetty server."],["You must first install the Eclipse Jetty Integration from the Eclipse marketplace before setting up your project to run and debug with Jetty."],["You can launch your project on the Jetty server by selecting \"Run As\" \u003e \"Run with Jetty\" and access it via `http://localhost:8080/` or the port you defined in the run configuration."],["Once you have tested your application on the Jetty server, it can be deployed to the App Engine flexible environment."]]],[]]