{
    // 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": "Launch Current File",
            "request": "launch",
            "mainClass": "${file}"
        },
        {
            "type": "java",
            "name": "Launch Main",
            "request": "launch",
            "mainClass": "electrosphere.engine.Main",
            "vmArgs": "-Xmx2G -Xms100m -XX:+UseZGC -XX:+UseDynamicNumberOfGCThreads -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=\"/tmp\"",
            "projectName": "Renderer"
        },
        {
            "type": "java",
            "name": "Launch Main (Debug Audio)",
            "request": "launch",
            "mainClass": "electrosphere.engine.Main",
            "env": {
                "ALSOFT_LOGLEVEL": 4,
            },
            "vmArgs": "-Xmx2G -Xms100m -XX:+UseZGC -XX:+UseDynamicNumberOfGCThreads -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=\"/tmp\"",
            "projectName": "Renderer"
        },
        {
            "type": "java",
            "name": "Launch Main (macos)",
            "request": "launch",
            "mainClass": "electrosphere.engine.Main",
            "projectName": "Renderer",
            "vmArgs": "-XstartOnFirstThread"
        },
        {
            "type": "java",
            "name": "Launch Main (Headless)",
            "request": "launch",
            "mainClass": "electrosphere.engine.Main",
            "projectName": "Renderer",
            "args" : "--headless"
        },
        {
            "type": "java",
            "name": "Launch Simulation Only",
            "request": "launch",
            "mainClass": "electrosphere.engine.Main",
            "projectName": "Renderer",
            "args" : "--simulate"
        }
    ]
}