August 10, 2020

[VS Code] สร้าง Config เพื่อใส่ Parameter ให้ Java ตอน Run Debug Code

สร้าง Config เพื่อใส่ parameter ให้ java ตอน run debug code

ไปหน้า Run (Ctrl + Shift+ D)
 เลือกสร้างหรือแก้ไข launch.json
รูปแบบตามข้างล่าง vmArgs ใส่เพื่อเป็น param ให้ java
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "type": "java",
            "name": "Debug (Launch) - Current File",
            "request": "launch",
            "mainClass": "${file}",
            "vmArgs": "-Dbpo-resource=D:\\Project\\bpo\\jdbc.bpo.dol.properties"
        },
        {
            "type": "java",
            "name": "Debug (Launch)-Application<bpo-core-api-ws>",
            "request": "launch",
            "mainClass": "com.wealth.bpo.Application",
            "projectName": "bpo-core-api-ws",
            "vmArgs": "-Dbpo-resource=D:\\Project\\bpo\\jdbc.bpo.dol.properties"
        },
        {
            "type": "java",
            "name": "Debug (Launch)-Param",
            "request": "launch",
            "mainClass": "com.wealth.bpo.Application",
            "projectName": "bpo-core-api-ws",
            "vmArgs": "-Dbpo-resource=D:\\Project\\bpo\\jdbc.bpo.dol.properties"
        }
    ]
}
December 2024
S M T W T F S
1234567
891011121314
15161718192021
22232425262728
293031  

Who We Are

Wealth Management System Limited (WMSL) is a leading financial software company in Thailand. We provide reliable, trusted solutions to financial institutions in asset, treasury and risk management. With our innovative software systems and value added consulting services, we help our customers significantly improve their operational efficiency, reduce costs and minimize risks.

Contact Info

Chin Pong Building, 383 Ladya Road, Klongsan, Bangkok 10600 Thailand

Phone: +66(0) 2-861-4820 Ext. 5620-5622, 5628, 5629
Fax: +66 (0) 2-861-4400
Email: marketing@wealth.co.th

Weekdays: 8:00 am - 5:00 pm
Saturday & Sunday: Closed

Copyright © 2022 WMSL. All Rights Reserved