นักเล่นอินเทอร์เน็ตมืออาชีพ • ผู้ที่ชื่นชอบเกม • ผู้สร้างเทคโนโลยี
นักเล่นอินเทอร์เน็ตมืออาชีพ • ผู้ที่ชื่นชอบเกม • ผู้สร้างเทคโนโลยี

วิธีการรันแอปพลิเคชัน node.js ใน Eclipse เป็นแบบภายนอกด้วย

นี่คือคำแนะนำฉบับย่อเกี่ยวกับวิธีการเปิดใช้งานแอปพลิเคชัน Node.JS ภายใน Eclipse IDE โดยไม่ต้องติดตั้งปลั๊กอินภายนอกใดๆ!
หน้านี้ได้รับการแปลจากภาษาอังกฤษโดยนักศึกษาฝึกงานด้าน AI ที่มีแรงบันดาลใจสูงของฉัน เพื่อความสะดวกของคุณ พวกเขายังคงเรียนรู้อยู่ ดังนั้นอาจมีข้อผิดพลาดหลงเหลืออยู่บ้าง สำหรับข้อมูลที่ถูกต้องที่สุด โปรดดูเวอร์ชันภาษาอังกฤษ
บ้าน บล็อก วิธีการรันแอปพลิเคชัน node.js ใน Eclipse เป็นแบบภายนอกด้วย

โปรดทราบว่าบล็อกโพสต์นี้เผยแพร่เมื่อเดือนกรกฎาคม 2555 ดังนั้น เนื้อหาบางส่วนอาจล้าสมัย ขึ้นอยู่กับว่าคุณอ่านเมื่อใด ขออภัยที่ฉันไม่สามารถอัปเดตโพสต์เหล่านี้ให้ทันสมัยอยู่เสมอเพื่อให้แน่ใจว่าข้อมูลยังคงถูกต้อง

    If you like using Eclipse as your preferred IDE for your coding, there is an easy way to use the built in External tools feature in Eclipse to launch Node.js applications, without having to install any external plugins.
    Here is a short guide how.

    The Hello World JavaScript project

    Here is a simple overview of a typical Hello World application in JavaScript that prints out the phrase "Hello World" to the console.log.
    Screenshot of a JavaScript file in Eclipse

    Creating the External tool launcher

    To launch this, we need to create a custom External tool launch configuration. Start by opening up your External tool configurations.
    This can by done by going "Run" - "External Tools" - "External Tools Configurations...", or by clicking on the External tools shortcut in the toolbar:
    External tool configuration
    Select "Program" and then click on the "New launch configuration" button:
    New launch configuration
    Once the configuration window opens, do the following:
      static.specialagentsqueaky.com example "node.js - Hello World".
    1. "Location" should point towards node.js launch command, for Window-users this can point directly to node.exe.
    2. "Working Directory" should points towards your project. This can be done by clicking on the "Browse Workspace..." button.
    3. Enter the name of the JavaScript file you want node.js to execute. In my case it is "main.js".
    4. Apply and close the window.
    Settings

    Running your application

    Your launch configuration is now ready to be called from the "External tool" button:
    Launching the app
    Running it will use the console view in Eclipse for the output:
    Console

    เขียนโดย Special Agent Squeaky เผยแพร่ครั้งแรก 29 กรกฎาคม 2555 อัปเดตล่าสุด 29 กรกฎาคม 2555

    📺 ดูวิดีโอล่าสุดของ Squeaky!

    วิธีเพิ่มคำบรรยายเรียลไทม์แบบง่ายๆ สำหรับสตรีมสดของคุณ