builder and vscode launcher

This commit is contained in:
Alfredo Oliviero 2024-05-21 17:58:12 +02:00
parent fe44723739
commit 9c9ab7fdb4
3 changed files with 28 additions and 2 deletions

24
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,24 @@
{
// Usare IntelliSense per informazioni sui possibili attributi.
// Al passaggio del mouse vengono visualizzate le descrizioni degli attributi esistenti.
// Per altre informazioni, visitare: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Debug Service (Attach)",
"projectName": "social-service",
"request": "attach",
"hostName": "localhost",
"port": 5005
},
{
"type": "java",
"name": "Current File",
"request": "launch",
"mainClass": "${file}"
}
]
}

View File

@ -1,3 +1,4 @@
{
"java.configuration.updateBuildConfiguration": "automatic"
"java.configuration.updateBuildConfiguration": "automatic",
"java.compile.nullAnalysis.mode": "automatic"
}

View File

@ -93,6 +93,7 @@ while getopts $OPTSTRING opt; do
d)
DEBUG=true
DEBUG_PORT=${OPTARG}
EXECUTE=true ;
echo "debug enabled, port $DEBUG_PORT, execute $EXECUTE"
;;
j)
@ -109,7 +110,7 @@ while getopts $OPTSTRING opt; do
if [ ${OPTARG} = "d" ]; then
DEBUG=true
EXECUTE=true
echo "debug enabled, port $DEBUG_PORT"
echo "debug enabled, not default debug port $DEBUG_PORT, execute $EXECUTE"
else
# matched when an option that is expected to have an argument is passed without one
echo "Option -${OPTARG} requires an argument."